You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jens Seidel <je...@users.sourceforge.net> on 2006/02/23 12:03:21 UTC

Committing a directory property alone is impossible?

Hi,

I need a way to commit (or diff, ...) a changed svn:ignore property on a
directory. The problem is that "svn ci ." commits all files in the
directory, not only the property. Even using ci option --non-recursive to
avoid recursion doesn't help if there are other changed files in the working
copy.

There is no "svn ci --non-recursive --prop-only svn:ignore" command, right?

The current solution is to always rename modified files before the commit and
after it I rename the files back. This is very ugly!
I know I can do this in a new, unchanged working copy as well, but ...

Related mails I found do not answer this:
http://svn.haxx.se/users/archive-2004-12/0294.shtml (thread)
http://svn.haxx.se/users/archive-2004-12/0458.shtml (single mail)
http://svn.haxx.se/users/archive-2004-12/0594.shtml

Any idea?

Please CC: me.

Jens

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Committing a directory property alone is impossible?

Posted by Marc Herbert <Ma...@gmail.com>.
>>>>> I need a way to commit (or diff, ...) a changed svn:ignore property on a
>>>>> directory. The problem is that "svn ci ." commits all files in the
>>>>> directory, not only the property. Even using ci option --non-recursive to
>>>>> avoid recursion doesn't help if there are other changed files in the working
>>>>> copy.

>>>> You could go to the parent directory and then say
>>>> svn ci <dirname> -N

>>> Hah, indeed this worked.

>> Well, this "parent directory" trick does NOT work for me. It still pollutes the commit with the files inside the directory.
>> I am using svn, version 1.5.4 (r33841). Is this a regression?

> I think so. The proper way to do it now is to use the new --depth option,
> probably with value "empty". I'm not sure whether 1.5.4 already supports
> this.

"--depth empty" works great with 1.5.4, thanks a lot! This problem has annoyed me for a very long time.


Whatever option is used, changing to the parent directory now makes absolutely no difference with 1.5.4. "--depth" consistently works and "-N" consistently pollutes the commit.

Cheers,

Marc

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2363560

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Committing a directory property alone is impossible?

Posted by Jens Seidel <je...@users.sf.net>.
Hi,

Marc found an older mail from myself in the archive of this list. That's why
I added the list to the discussion. Marc, I hope this is OK.

On Thu, Jun 18, 2009 at 12:03:28PM +0100, Marc Herbert wrote:
> Jens Seidel a écrit :
> > Am Donnerstag, 23. Februar 2006 13:33 schrieben Sie:
> >> Jens Seidel <je...@users.sf.net> wrote:
> 
> >>> I need a way to commit (or diff, ...) a changed svn:ignore property on a
> >>> directory. The problem is that "svn ci ." commits all files in the
> >>> directory, not only the property. Even using ci option --non-recursive to
> >>> avoid recursion doesn't help if there are other changed files in the working
> >>> copy.
> 
> >> You could go to the parent directory and then say
> >> svn ci <dirname> -N
> 
> > Hah, indeed this worked.
>  
> 
> Well, this "parent directory" trick does NOT work for me. It still pollutes the commit with the files inside the directory.
> 
> I am using svn, version 1.5.4 (r33841). Is this a regression?

I think so. The proper way to do it now is to use the new --depth option,
probably with value "empty". I'm not sure whether 1.5.4 already supports
this.

PS: Please CC: me, I'm no longer subscribed.

Jens


Re: Committing a directory property alone is impossible?

Posted by Marc Herbert <Ma...@gmail.com>.
Jens Seidel a écrit :
> Am Donnerstag, 23. Februar 2006 13:33 schrieben Sie:
>> Jens Seidel <je...@users.sf.net> wrote:

>>> I need a way to commit (or diff, ...) a changed svn:ignore property on a
>>> directory. The problem is that "svn ci ." commits all files in the
>>> directory, not only the property. Even using ci option --non-recursive to
>>> avoid recursion doesn't help if there are other changed files in the working
>>> copy.

>> You could go to the parent directory and then say
>> svn ci <dirname> -N

> Hah, indeed this worked.
 

Well, this "parent directory" trick does NOT work for me. It still pollutes the commit with the files inside the directory.

I am using svn, version 1.5.4 (r33841). Is this a regression?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2363137

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Committing a directory property alone is impossible?

Posted by Jens Seidel <je...@users.sourceforge.net>.
Am Donnerstag, 23. Februar 2006 13:33 schrieben Sie:
> Jens Seidel <je...@users.sf.net> wrote:
> > I need a way to commit (or diff, ...) a changed svn:ignore property on a
> > directory. The problem is that "svn ci ." commits all files in the
> > directory, not only the property. Even using ci option --non-recursive to
> > avoid recursion doesn't help if there are other changed files in the working
> > copy.
> 
> You could go to the parent directory and then say
> svn ci <dirname> -N

Hah, indeed this worked.

I'm always carefully with commits that's why I tested the option -N
(--non-recursive) first with diff and it behaves differently compared with ci:

svn status wd
 M     wd
A      wd/file1

svn diff -N wd

Property changes on: wd
___________________________________________________________________
Name: svn:ignore
   - temporary files

   + temporry files


Index: wd/file1
===================================================================
--- wd/file1    (revision 0)
+++ wd/file1    (revision 0)
@@ -0,0 +1 @@
+test2

So it matches file1 as well, which I tried to avoid.

Maybe I should use the option --dry-run more often??!

But as you wrote works ci without committing file1:

svn ci -m "log" -N wd
Sending        wd

Committed revision 4.

Thanks,
Jens

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Committing a directory property alone is impossible?

Posted by Ma...@gfa-net.de.
Jens Seidel <je...@users.sf.net> wrote:

> Hi,
> 
> I need a way to commit (or diff, ...) a changed svn:ignore property on a
> directory. The problem is that "svn ci ." commits all files in the
> directory, not only the property. Even using ci option --non-recursive 
to
> avoid recursion doesn't help if there are other changed files in the 
working
> copy.
> 
> There is no "svn ci --non-recursive --prop-only svn:ignore" command, 
right?

Not as far as I know.

> 
> The current solution is to always rename modified files before the 
commit and
> after it I rename the files back. This is very ugly!
> I know I can do this in a new, unchanged working copy as well, but ...
> 
> Related mails I found do not answer this:
> http://svn.haxx.se/users/archive-2004-12/0294.shtml (thread)
> http://svn.haxx.se/users/archive-2004-12/0458.shtml (single mail)
> http://svn.haxx.se/users/archive-2004-12/0594.shtml
> 
> Any idea?
> 

You could go to the parent directory and then say
svn ci <dirname> -N

Mathias

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org