[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Committing a directory property alone is impossible?

From: Jens Seidel <jensseidel_at_users.sourceforge.net>
Date: 2006-02-23 17:19:30 CET

Am Donnerstag, 23. Februar 2006 13:33 schrieben Sie:
> Jens Seidel <jensseidel@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
Received on Thu Feb 23 17:31:59 2006

This is an archived mail posted to the Subversion Users mailing list.