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

svn log --limit 1 -r 1:HEAD url returns two log entries

From: Tim Toolan <toolan_at_ele.uri.edu>
Date: 2006-03-31 15:12:52 CEST

When using the log function, with the --limit option and the --revision option,
where the revisions are ascending, it returns one more entry than requested.
For instance the command:

 svn log -r 1:HEAD --limit 1 file:///path_to_repository

will return two log entries, where it should only return one. Descending
revisions, such as:

 svn log -r HEAD:1 --limit 1 file:///path_to_repository

work properly.

Has anyone else seen this behavior? I am using version 1.2.3 of subversion.

The reason for using log -r 1:HEAD --limit 1, is that when viewing a directory
listing in a Subversion viewer like Chora, it shows the last log entry for each
file. For sub-directories, the first log entry is usually more informative
than the last, since it will probably be a description of why the directory was
created.

Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 31 16:15:39 2006

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.