You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by cm...@collab.net on 2003/08/27 04:26:48 UTC

Re: Default log functionality changed?

Bruce DeVisser <de...@look.ca> writes:

> Is 'svn log' with no arguments supposed to present a log up
> to HEAD, or up to BASE?
> 
> I think I've been wired by earlier versions to expect the
> former, and 0.27 does the latter.
> 
> Put in other words, this sequence...:
>   checkout
>   log
>   edit / check in
>   log
> ... produces identical logs in both cases. Should it?

Yes.  This change was made to address the bug which occured when
trying to run 'svn log' on something in the working copy that had
since been removed from HEAD, and to make this subcommand's behavior a
bit more consistent with that of other subcommands.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Default log functionality changed?

Posted by Vincent Lefevre <vi...@vinc17.org>.
On Tue, Aug 26, 2003 at 23:26:48 -0500, cmpilato@collab.net wrote:
> Yes.  This change was made to address the bug which occured when
> trying to run 'svn log' on something in the working copy that had
> since been removed from HEAD, and to make this subcommand's behavior a
> bit more consistent with that of other subcommands.

I prefered the old behavior. Is there a way to provide default options
for svn log (or other subcommands), such as "-rHEAD:1"?

Otherwise, an alias could do what I want.

-- 
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
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

Re: Default log functionality changed?

Posted by cm...@collab.net.
Bruce DeVisser <de...@look.ca> writes:

> On Wed, Aug 27, 2003 at 10:27:24AM -0500, cmpilato@collab.net wrote:
> > As for a workaround, note that if you use the URL of the
> > resource instead of the working copy path, that defaults
> > to -rHEAD:1 (just like other Subversion subcommands).  So,
> > at least on Unix, you can do something like:
> > 
> >    svn log `svn info | grep '^Url:' | cut -c6-`
> 
> Isn't 'svn log -rhead:1' equivalent? (Doesn't any reference
> to HEAD force a check of the repository?)

Uh.

Heh.

/me hides his embarrassed face...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Default log functionality changed?

Posted by Bruce DeVisser <de...@look.ca>.
On Wed, Aug 27, 2003 at 10:27:24AM -0500, cmpilato@collab.net wrote:
> As for a workaround, note that if you use the URL of the
> resource instead of the working copy path, that defaults
> to -rHEAD:1 (just like other Subversion subcommands).  So,
> at least on Unix, you can do something like:
> 
>    svn log `svn info | grep '^Url:' | cut -c6-`

Isn't 'svn log -rhead:1' equivalent? (Doesn't any reference
to HEAD force a check of the repository?)

Bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Default log functionality changed?

Posted by cm...@collab.net.
Bruce DeVisser <de...@look.ca> writes:

> On Tue, Aug 26, 2003 at 11:26:48PM -0500, cmpilato@collab.net wrote:
> > Yes.  This change was made to address the bug which
> > occured when trying to run 'svn log' on something in the
> > working copy that had since been removed from HEAD, and to
> > make this subcommand's behavior a bit more consistent with
> > that of other subcommands.
> 
> This would be a bit of a gotcha for CVS users that would be
> worth commenting on in the 'SVN for CVS Users' appendix of
> the book.

Yes, this should definitely happen -- thanks for mentiong it.  

Our new 'svn log' behavior is more consistent with other Subversion
subcommands, and the code is certainly less complicated (CVS never has
to worry about things not existing in HEAD -- the ,v file is always
present and easy to find).

As for a workaround, note that if you use the URL of the resource
instead of the working copy path, that defaults to -rHEAD:1 (just like
other Subversion subcommands).  So, at least on Unix, you can do
something like:

   svn log `svn info | grep '^Url:' | cut -c6-`

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Default log functionality changed?

Posted by Vincent Lefevre <vi...@vinc17.org>.
On Wed, Aug 27, 2003 at 07:58:03 -0500, Ben Collins-Sussman wrote:
> Bruce DeVisser <de...@look.ca> writes:
> > This would be a bit of a gotcha for CVS users that would be
> > worth commenting on in the 'SVN for CVS Users' appendix of
> > the book. Possibly under the 'Directory Versions' section?
> 
> Huh?  Does running 'cvs log foo.c' show the *entire* history of the
> file, regardless of whatever version I have in my working copy?

Yes, cvs log is essentially a repository function (I think that
this is better like that).

-- 
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
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

Re: Default log functionality changed?

Posted by Ben Collins-Sussman <su...@collab.net>.
Bruce DeVisser <de...@look.ca> writes:

> On Tue, Aug 26, 2003 at 11:26:48PM -0500, cmpilato@collab.net wrote:
> > Yes.  This change was made to address the bug which
> > occured when trying to run 'svn log' on something in the
> > working copy that had since been removed from HEAD, and to
> > make this subcommand's behavior a bit more consistent with
> > that of other subcommands.
> 
> This would be a bit of a gotcha for CVS users that would be
> worth commenting on in the 'SVN for CVS Users' appendix of
> the book. Possibly under the 'Directory Versions' section?

Huh?  Does running 'cvs log foo.c' show the *entire* history of the
file, regardless of whatever version I have in my working copy?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Default log functionality changed?

Posted by Bruce DeVisser <de...@look.ca>.
On Tue, Aug 26, 2003 at 11:26:48PM -0500, cmpilato@collab.net wrote:
> Yes.  This change was made to address the bug which
> occured when trying to run 'svn log' on something in the
> working copy that had since been removed from HEAD, and to
> make this subcommand's behavior a bit more consistent with
> that of other subcommands.

This would be a bit of a gotcha for CVS users that would be
worth commenting on in the 'SVN for CVS Users' appendix of
the book. Possibly under the 'Directory Versions' section?

Bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org