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

Re: "svn commit" followed by "svn log" doesn't show new revision

From: Niels Skou Olsen <nso_at_manbw.dk>
Date: 2004-11-17 10:57:32 CET

"Mark" <mark@msdhub.com> writes:

> That's exactly my experience. Committing a file doesn't bump the revnum of
> the containing directory, just the file.

Mark, I may be misinterpreting you.. In the example below I add a file f1
to directory mydir, which results in a new repository revision 2. The
following log for mydir shows that in revision 2 f1 was added. If I
understand you correctly, your statement above is wrong.

  nso@SBMA:/tmp/work/mydir> svn up
  At revision 1.
  nso@SBMA:/tmp/work/mydir> svn log
  ------------------------------------------------------------------------
  r1 | nso | 2004-11-17 10:49:21 +0100 (Wed, 17 Nov 2004) | 1 line
  
  add mydir
  ------------------------------------------------------------------------
  nso@SBMA:/tmp/work/mydir> ls >f1
  nso@SBMA:/tmp/work/mydir> svn add f1
  A f1
  nso@SBMA:/tmp/work/mydir> svn commit -m"add f1"
  Adding mydir/f1
  Transmitting file data .
  Committed revision 2.
  nso@SBMA:/tmp/work/mydir> svn log -rHEAD:1
  ------------------------------------------------------------------------
  r2 | nso | 2004-11-17 10:50:19 +0100 (Wed, 17 Nov 2004) | 1 line
  
  add f1
  ------------------------------------------------------------------------
  r1 | nso | 2004-11-17 10:49:21 +0100 (Wed, 17 Nov 2004) | 1 line
  
  add mydir
  ------------------------------------------------------------------------
  nso@SBMA:/tmp/work/mydir> cd ..
  nso@SBMA:/tmp/work> svn log -rHEAD:1 mydir
  ------------------------------------------------------------------------
  r2 | nso | 2004-11-17 10:50:19 +0100 (Wed, 17 Nov 2004) | 1 line
  
  add f1
  ------------------------------------------------------------------------
  r1 | nso | 2004-11-17 10:49:21 +0100 (Wed, 17 Nov 2004) | 1 line
  
  add mydir
  ------------------------------------------------------------------------
  nso@SBMA:/tmp/work>
  
Best regards,
Niels

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 17 10:59:18 2004

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