You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Bunter <br...@yahoo.com> on 2009/09/30 18:13:13 UTC

How to get history on an overwritten svn url?

Hi all tricky question.  We'd like to follow a branch procedure as
follows:

   delete /trunk
   branch /sprint to /trunk

   (two weeks later)

   delete /trunk
   branch /sprint to /trunk

   (etc.)

Problem is, when look at the log of /trunk we see the history of the /
sprint that just overwrote it (note TortoiseSvn shows an odd gray
highlight on the branched-in rev as well).  The question is, how can
we see the history of the /trunk that got overwritten?  And the one
that got overwritten before that, etc.  Of course we could use unique
urls for everything, but we'd like to do it as above to simplify the
scripts we have built on top.

Thankee kindly,
Bunter

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402215

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: How to get history on an overwritten svn url?

Posted by "Brown, Michael" <mi...@philips.com>.
Correct, space is not created, nor destroyed.
The point is that each of the branches is readily available for history review by using its branch name.  Otherwise you have to keep track somewhere of what revisions were part of the "trunk" that you were interested in looking at.
I supposed that you could tag it right before you "destroyed" it, but that isn't much different than creating branches with unique names.
The bottom line is to help out the humans that are using the repository.
MB
 --
You design it, I'll build it
e-mail: michael.l.brown@philips.com
desk: 608-288-6969
cell: 608-206-6843


-----Original Message-----
From: Les Mikesell [mailto:lesmikesell@gmail.com]
Sent: Thursday, October 01, 2009 7:27 AM
To: Stein Somers
Cc: users@subversion.tigris.org
Subject: Re: How to get history on an overwritten svn url?

Stein Somers wrote:
> Brown, Michael wrote:
>> To see the complete log of the tree, a simple:
>>         svn log -v svn+rsh://svnsrv/Tree | less
>> That will get you every svn entry done to that tree.  From there you'll notice the pattern as to what happens by your deleting and branching.
>
> You'll notice the pattern, if replacements are all that is listed. But if you
> have many "ordinary" commits in the same branch, it seems so hard to find
> those replacements.
>
>> If you had this structure:
>>         Tree/branches/Job_0001
>
> ...then one day you'll clean up that branch because you'll never going to
> look at it again.

Why?  It doesn't save space in the repository.

--
   Les Mikesell
    lesmikesell@gmail.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402479

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402546

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: How to get history on an overwritten svn url?

Posted by Stein Somers <ss...@opnet.com>.
Les Mikesell wrote:
>>>>> If you had this structure:
>>>>>         Tree/branches/Job_0001
>>>> ...then one day you'll clean up that branch because you'll never 
>>>> going to look at it again.
>>> Why?
>> So that when you list the contents of Tree/branches@HEAD, you see 
>> somewhat relevant projects and not hundreds of outdated projects.
> 
> They can be arranged in subdirectories if you want them out of sight or 
> kept in relevant places.

I get it. Don't delete but move. HEAD always contains all starting points and 
you never need to search for a peg revision.

Except in the original case, overwritten urls, but then searching is easy if 
you make sure not to have "normal" commits interfering.

-- 
Stein

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402545

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: How to get history on an overwritten svn url?

Posted by Les Mikesell <le...@gmail.com>.
Stein Somers wrote:
> 

>>>> If you had this structure:
>>>>         Tree/branches/Job_0001
>>> ...then one day you'll clean up that branch because you'll never going 
>>> to look at it again.
>> Why?
> 
> So that when you list the contents of Tree/branches@HEAD, you see somewhat 
> relevant projects and not hundreds of outdated projects.

They can be arranged in subdirectories if you want them out of sight or kept in 
relevant places.  The point of having things in a version control system is to 
be able to recall any of the versions easily.  Deleting them from view makes it 
a lot less easy.

-- 
   Les Mikesell
    lesmikesell@gmail.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402493

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: How to get history on an overwritten svn url?

Posted by Stein Somers <ss...@opnet.com>.
Les Mikesell wrote:
> Stein Somers wrote:
>> Brown, Michael wrote:
>>> If you had this structure:
>>>         Tree/branches/Job_0001
>>
>> ...then one day you'll clean up that branch because you'll never going 
>> to look at it again.
> 
> Why?

So that when you list the contents of Tree/branches@HEAD, you see somewhat 
relevant projects and not hundreds of outdated projects.

-- 
Stein

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402487

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: How to get history on an overwritten svn url?

Posted by Les Mikesell <le...@gmail.com>.
Stein Somers wrote:
> Brown, Michael wrote:
>> To see the complete log of the tree, a simple:
>>         svn log -v svn+rsh://svnsrv/Tree | less
>> That will get you every svn entry done to that tree.  From there you'll notice the pattern as to what happens by your deleting and branching.
> 
> You'll notice the pattern, if replacements are all that is listed. But if you 
> have many "ordinary" commits in the same branch, it seems so hard to find 
> those replacements.
> 
>> If you had this structure:
>>         Tree/branches/Job_0001
> 
> ...then one day you'll clean up that branch because you'll never going to 
> look at it again.

Why?  It doesn't save space in the repository.

-- 
   Les Mikesell
    lesmikesell@gmail.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402479

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: How to get history on an overwritten svn url?

Posted by Stein Somers <ss...@opnet.com>.
Brown, Michael wrote:
> To see the complete log of the tree, a simple:
>         svn log -v svn+rsh://svnsrv/Tree | less
> That will get you every svn entry done to that tree.  From there you'll notice the pattern as to what happens by your deleting and branching.

You'll notice the pattern, if replacements are all that is listed. But if you 
have many "ordinary" commits in the same branch, it seems so hard to find 
those replacements.

> If you had this structure:
>         Tree/branches/Job_0001

...then one day you'll clean up that branch because you'll never going to 
look at it again. And later of course you want to look at it again. So how do 
you find the right peg revision, just before the deletion? What I do is to a 
lottery system: pick an old peg revision and work my way up. Is there a 
proper way?

-- 
Stein

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402441

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: How to get history on an overwritten svn url?

Posted by "Brown, Michael" <mi...@philips.com>.
As you well know, nothing is ever delete from a tree (the complete repository).  For the sake of example providing, we'll call your repository "tree" and your Subversion server "svnsrv".
Where I use it, we use ssh and rsh for access to the repositories, so the URL example will be based upon that.
To see the complete log of the tree, a simple:
        svn log -v svn+rsh://svnsrv/Tree | less
That will get you every svn entry done to that tree.  From there you'll notice the pattern as to what happens by your deleting and branching.
As a side comment, I'm not sure why you don't have a branch subdirectory, since you are branching.  Additional, why not create sequentionally named branches, or some unique naming convention for the branches?  That way you can keep old branches alive and make them a little easier to access.  Doing what you are doing, by constantly deleting and recreating "trunk" gets you into the bind you are in today, since you need to keep track of SVN revision numbers that were used for particular "trunks".
If you had this structure:
        Tree/branches/Job_0001
        Tree/branches/Job_0002 ...
It would then be easy to see the log entries, i.e.,: svn log -v svn+rsh://svnsrv/Tree/branches/Job_0001 | less
You could care less what the SVN revision numbers are.
My 20 cents in the inflated market :-)
MB
 --
You design it, I'll build it
e-mail: michael.l.brown@philips.com
desk: 608-288-6969
cell: 608-206-6843


-----Original Message-----
From: Bunter [mailto:brentww04@yahoo.com]
Sent: Wednesday, September 30, 2009 1:13 PM
To: users@subversion.tigris.org
Subject: How to get history on an overwritten svn url?

Hi all tricky question.  We'd like to follow a branch procedure as
follows:

   delete /trunk
   branch /sprint to /trunk

   (two weeks later)

   delete /trunk
   branch /sprint to /trunk

   (etc.)

Problem is, when look at the log of /trunk we see the history of the /
sprint that just overwrote it (note TortoiseSvn shows an odd gray
highlight on the branched-in rev as well).  The question is, how can
we see the history of the /trunk that got overwritten?  And the one
that got overwritten before that, etc.  Of course we could use unique
urls for everything, but we'd like to do it as above to simplify the
scripts we have built on top.

Thankee kindly,
Bunter

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402215

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402236

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: How to get history on an overwritten svn url?

Posted by "Brown, Michael" <mi...@philips.com>.
Brent:
That holds true for anything.  If you are trying to debug a problem, you can delete a piece of source and then update it to the revision where you last thought it worked.  SVN is a fantastic tool.  We love it where I work.
MB
 --
You design it, I'll build it
e-mail: michael.l.brown@philips.com
desk: 608-288-6969
cell: 608-206-6843


-----Original Message-----
From: Brent Williams [mailto:brentww04@yahoo.com]
Sent: Wednesday, September 30, 2009 3:09 PM
To: users@subversion.tigris.org
Subject: Re: How to get history on an overwritten svn url?

Bingo, peg revisions.  So if I deleted /trunk at rev 100, I can still
'get it back' with e.g.:

   svn co svn://.../trunk@99

Thanks Hyrum!
Bunter

---

On Sep 30, 8:17 pm, "Hyrum K. Wright" <hy...@hyrumwright.org> wrote:
> On Sep 30, 2009, at 2:13 PM,Bunterwrote:
>
>
>
> > Hi all tricky question.  We'd like to follow a branch procedure as
> > follows:
>
> >   delete /trunk
> >   branch /sprint to /trunk
>
> >   (two weeks later)
>
> >   delete /trunk
> >   branch /sprint to /trunk
>
> >   (etc.)
>
> > Problem is, when look at the log of /trunk we see the history of the /
> > sprint that just overwrote it (note TortoiseSvn shows an odd gray
> > highlight on the branched-in rev as well).  The question is, how can
> > we see the history of the /trunk that got overwritten?  And the one
> > that got overwritten before that, etc.  Of course we could use unique
> > urls for everything, but we'd like to do it as above to simplify the
> > scripts we have built on top.
>
> You are most likely looking for peg revisions:http://svnbook.red-bean.com/en/1.5/svn.advanced.pegrevs.html
>
> -Hyrum
>
> ------------------------------------------------------http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessa...
>
> To unsubscribe from this discussion, e-mail: [users-unsubscr...@subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402264

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402272

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: How to get history on an overwritten svn url?

Posted by Brent Williams <br...@yahoo.com>.
Bingo, peg revisions.  So if I deleted /trunk at rev 100, I can still
'get it back' with e.g.:

   svn co svn://.../trunk@99

Thanks Hyrum!
Bunter

---

On Sep 30, 8:17 pm, "Hyrum K. Wright" <hy...@hyrumwright.org> wrote:
> On Sep 30, 2009, at 2:13 PM,Bunterwrote:
>
>
>
> > Hi all tricky question.  We'd like to follow a branch procedure as
> > follows:
>
> >   delete /trunk
> >   branch /sprint to /trunk
>
> >   (two weeks later)
>
> >   delete /trunk
> >   branch /sprint to /trunk
>
> >   (etc.)
>
> > Problem is, when look at the log of /trunk we see the history of the /
> > sprint that just overwrote it (note TortoiseSvn shows an odd gray
> > highlight on the branched-in rev as well).  The question is, how can
> > we see the history of the /trunk that got overwritten?  And the one
> > that got overwritten before that, etc.  Of course we could use unique
> > urls for everything, but we'd like to do it as above to simplify the
> > scripts we have built on top.
>
> You are most likely looking for peg revisions:http://svnbook.red-bean.com/en/1.5/svn.advanced.pegrevs.html
>
> -Hyrum
>
> ------------------------------------------------------http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessa...
>
> To unsubscribe from this discussion, e-mail: [users-unsubscr...@subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402264

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: How to get history on an overwritten svn url?

Posted by "Hyrum K. Wright" <hy...@hyrumwright.org>.
On Sep 30, 2009, at 2:13 PM, Bunter wrote:

> Hi all tricky question.  We'd like to follow a branch procedure as
> follows:
>
>   delete /trunk
>   branch /sprint to /trunk
>
>   (two weeks later)
>
>   delete /trunk
>   branch /sprint to /trunk
>
>   (etc.)
>
> Problem is, when look at the log of /trunk we see the history of the /
> sprint that just overwrote it (note TortoiseSvn shows an odd gray
> highlight on the branched-in rev as well).  The question is, how can
> we see the history of the /trunk that got overwritten?  And the one
> that got overwritten before that, etc.  Of course we could use unique
> urls for everything, but we'd like to do it as above to simplify the
> scripts we have built on top.

You are most likely looking for peg revisions:
http://svnbook.red-bean.com/en/1.5/svn.advanced.pegrevs.html

-Hyrum

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402218

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].