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

Re: defaulting 'svn log' to HEAD revision

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: 2005-01-04 00:58:49 CET

On 2005-01-02 21:48:17 -0600, kfogel@collab.net wrote:
> Many users (including me) are periodically confused and/or annoyed by
> the fact that 'svn log' defaults to the working copy at BASE, instead
> of at HEAD. That is:
>
> $ svn commit -m "Commit a new revision."
> [...]
> Committed revision 245.
> $ svn log
> [... r245 is not shown, because it's too recent ...]
> $

IMHO, the real problem is not "svn log", but the fact that the working
copy is not automatically updated in some way to reflect the commit.
There's an even more confusing problem when, IIRC, trying to change
the svn:ignore property of the directory just after a commit: one gets
an error.

> Sure, there are workarounds. You can pass "-rHEAD:0", or you can run
> log on the URL, or you can run update before log. But these are all
> inconvenient.

There's a better workaround: use a shell alias (under Unix -- I don't
know about the other OS'es) or a wrapper.

> Would anyone object if we changed to HEAD:0 and made everyone's lives
> easier? :-)

I think that the current behavior is better for consistency, and
because a wrapper is possible.

-- 
Vincent Lefèvre <vincent_at_vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 4 01:01:54 2005

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.