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

Re: svn log right after commit seems strange

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-07-12 02:10:11 CEST

On Sun, 2004-07-11 at 18:05, Curtis Spencer wrote:

> Anyone have any ideas?

Hm, this seems to be a FAQ.

'svn log' operates on a target. If you don't specify one, it defaults
to '.'. In other words, you're asking the log command to show every
revision in which '.' (or something inside it) somehow changed.

The problem is that you're asking log for the history of the current
directory at the *old* revision.

Assume your whole working copy is at r42. Then you commit a file in
'.', which creates r43. Now your whole working copy is at r42, and the
one file you committed is at r43. When you run 'svn log', you're asking
for the history of '.'@r42. So it shows only changes starting at r42,
going backwards in time. If you were to run 'svn up', the whole
working copy would be brought to HEAD (r43), and 'svn log' on '.'@43
would then show r43 as the first change.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 12 02:11:55 2004

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

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