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

Re: bug? Directory version doesn't update on commit

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-11-05 21:37:39 CET

On Wed, 2003-11-05 at 14:04, Karl Chen wrote:
> Hi svn developers,
>
> If I do 'svn ci' in a directory to check in recursively, the
> version of the directory (i.e. from 'svn info') doesn't update
> until I do 'svn update'. Is this a bug (and if not why not)?

It's not a bug. Remember that directories are versioned objects just
like files. The directory wasn't committed, because it had no changes.
Some of its children were ocmmitted, though. Ergo, the children are now
at HEAD revision, but the parent directory is not. You have a
mixed-revision working copy, which is pretty common. "svn update"
brings the whole working copy to a single revision.

If the parent directory had a propchange attached to it, then 'svn
commit dir' would indeed have committed the parent directory itself,
along with any modified chidren, and the parent directory would also be
at HEAD.

Just remember that 'svn commit dir' means "search for any changes within
dir, and commit them." The directory itself may be one of the changed
items, or it may not. Usually not.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 5 21:39:36 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.