You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ja...@usitc.gov on 2007/08/14 15:01:22 UTC

Newbie, with revision history retention question.

Greetings:

We're about to perform some extensive project refactoring of a codebase
that is relatively mature.  We're interested in switching to Subversion
(from cvs) because we've heard (and read) that subversion does a better
job of maintaining revision history during file renames or moves.  

I'm trying to find confirmation of a point.

Given this scenario:

A file exists:  foo/bar/Baz.java

If the file is refactored to: foo/gazonk/BaseBaz.java

Is the revision history retained for all changes made to the original,
Baz.java?  Is that revision history still available to view on
BaseBaz.java?  Note that not only has the file been renamed, but it has
moved to an entirely different directory.  What if the file moved from
one "project" to another, such as foo/bar/Baz.java to
gazonk/bar/Baz.java?

Sorry to pepper everyone with these seemingly obvious questions from a
novice.  I need to confirm the behavior to help justify our migration.

Thanks,

-jason


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


Re: Newbie, with revision history retention question.

Posted by Andy Levy <an...@gmail.com>.
On 8/14/07, Erik Huelsmann <eh...@gmail.com> wrote:
> On 8/14/07, Jason.Yankus@usitc.gov <Ja...@usitc.gov> wrote:
> >
> > Greetings:
> >
> > We're about to perform some extensive project refactoring of a codebase
> > that is relatively mature.  We're interested in switching to Subversion
> > (from cvs) because we've heard (and read) that subversion does a better
> > job of maintaining revision history during file renames or moves.
> >
> > I'm trying to find confirmation of a point.
> >
> > Given this scenario:
> >
> > A file exists:  foo/bar/Baz.java
> >
> > If the file is refactored to: foo/gazonk/BaseBaz.java
> >
> > Is the revision history retained for all changes made to the original,
> > Baz.java?  Is that revision history still available to view on
> > BaseBaz.java?  Note that not only has the file been renamed, but it has
> > moved to an entirely different directory.  What if the file moved from
> > one "project" to another, such as foo/bar/Baz.java to
> > gazonk/bar/Baz.java?
> >
> > Sorry to pepper everyone with these seemingly obvious questions from a
> > novice.  I need to confirm the behavior to help justify our migration.
>
> As long as the file stays within the same repository, history is retained.

And the correct SVN commands are used (svn move, svn rename, svn copy,
etc.) instead of removing and re-adding.

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

Re: Newbie, with revision history retention question.

Posted by Erik Huelsmann <eh...@gmail.com>.
On 8/14/07, Jason.Yankus@usitc.gov <Ja...@usitc.gov> wrote:
>
> Greetings:
>
> We're about to perform some extensive project refactoring of a codebase
> that is relatively mature.  We're interested in switching to Subversion
> (from cvs) because we've heard (and read) that subversion does a better
> job of maintaining revision history during file renames or moves.
>
> I'm trying to find confirmation of a point.
>
> Given this scenario:
>
> A file exists:  foo/bar/Baz.java
>
> If the file is refactored to: foo/gazonk/BaseBaz.java
>
> Is the revision history retained for all changes made to the original,
> Baz.java?  Is that revision history still available to view on
> BaseBaz.java?  Note that not only has the file been renamed, but it has
> moved to an entirely different directory.  What if the file moved from
> one "project" to another, such as foo/bar/Baz.java to
> gazonk/bar/Baz.java?
>
> Sorry to pepper everyone with these seemingly obvious questions from a
> novice.  I need to confirm the behavior to help justify our migration.

As long as the file stays within the same repository, history is retained.

HTH,

Erik.

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