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

Re: "svn log" not reaching revision 1

From: Frodak <frodak17_at_yahoo.com>
Date: 2007-01-31 15:40:22 CET

--- Johan Holmberg wrote:

> On 1/31/07, Rob Hubbard
> wrote:
> >
> > The "svn mv" commands are significant. It may be
> that "trunk/subdir" existed back to revision 1 (even
> if it has been moved), but that the trunk into which
> it has been moved does not. Was the "trunk"
> directory *created* (without being moved or copied
> from something else) at around revision 900?
>
> A minimal example exhibiting the same "problem" as I
> reported seems to be:
>
> -------------------------
> DIR=`pwd`
> REPOS=file://$DIR/repos
>
> svnadmin create repos
> svn mkdir -m "created /subdir" $REPOS/subdir
> svn mkdir -m "created /trunk" $REPOS/trunk
> svn mv -m "moved under trunk" $REPOS/subdir
> $REPOS/trunk/subdir
>
> svn log $REPOS # gives 1-3
> svn log $REPOS/trunk # gives 2-3
> -------------------------
>
> > Have a read of the SVN book about peg revisions.
>
> Do you think that the example above also has to do
> with peg revisions?
> (I haven't fullt understood the text in the SVN book
> yet).
>
> /Johan Holmberg
>

This is normal.

The line "svn log $REPOS" will give the log of the
entire repository. All 3 versions.

The line "svn log $REPOS/trunk" will give the log of
the directory "trunk". Which is version 2 (where it
was created) and 3 (where it was modified by adding a
new subdirectory).

Add "svn log $REPOS/trunk/subdir" will give the log of
the directory "subdir". Which is version 1 (where it
was created) and 3 (where it was modified by moving
its location).

Frodak

 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 31 15:40:49 2007

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