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

Re: COMMITTED and subdir recursion

From: <rgarciasuarez_at_free.fr>
Date: 2003-01-20 11:05:11 CET

Karl Fogel kfogel@newton.ch.collab.net wrote:
 Rafael Garcia-Suarez rgarciasuarez@free.fr writes:
  The Book says (tersely) that COMMITTED is The last revision in which
  an item changed.
  
  It seems that the command
      $ svn log -r COMMITTED .
  gives the log message for the last revision for which '.' changed --
  non-recursively.
  
  Hence there is no efficient way to have the last revision for which
  an item under '.' changed. Am I right ? Is this intended behavior
  or should the meaning of COMMITTED for directory items be adjusted ?
 
 Could you give some concrete examples, just so there is no possibility
 for misunderstanding here?

I've looked a bit at this. In fact this is a well-known behavior : the
last-changed-revision of a directory is not updated when a commit is
done. Since COMMITTED reads its value from .svn/entries (right ?)
a svn update is necessary to update the last-changed-rev of this
directory.

Here is a small test that demonstrates the behavior :
(I've only 0.16.0 here, but I don't think this has changed recently)

    $ svnadmin create repos
    $ svn co file:///home/rafael/tmp/repos wc
    Checked out revision 0.
    $ cd wc
    $ touch foo; svn add foo; svn ci -m 'add foo'
    A foo
    Adding foo
    Transmitting file data .
    Committed revision 1.
    [rafael@rafael wc]$ svn log -r COMMITTED .
    No commit for revision 0.
    ------------------------------------------------------------------------
    $ svn info .
    Path:
    Url: file:///home/rafael/tmp/repos
    Revision: 0
    Node Kind: directory
    Schedule: normal
    Last Changed Rev: 0
    Last Changed Date: 2003-01-20 10:33:19 +0100 (Mon, 20 Jan 2003)

    $ svn up
    At revision 1.
    $ svn log -r COMMITTED .
    ------------------------------------------------------------------------
    rev 1: rafael | 2003-01-20 10:44:33 +0100 (Mon, 20 Jan 2003) | 1 line

    add foo
    ------------------------------------------------------------------------

I suggest that this behavior of COMMITTED should be documented.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:02:13 2006

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.