You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Francois Beaune <be...@aist.enst.fr> on 2007/03/24 23:22:40 UTC

reconnecting file history

Hi,

I'm having a simple problem for which I can't find any solution.
I have searched the mailing list archives, the FAQ, etc. but to
no avail.

Here is my problem:

I made the mistake to move a versioned file the "stupid" way:
I have copied the file to its new place (*not* using svn copy),
added the new file to svn, deleted the original one, and commited
the whole thing. Obviously, that was dumb, and the history of
this file is "lost" (or, to be precise, not easily available anymore).

I am perfectly aware of svn copy, svn move and svn rename,
and have been using them for years. Well, I just wasn't awake
enough I suppose.

Is there an "easy" way to fix this now? Many checkins have
been done since I realized the mistake, so rolling back to before
this checkin is going to be painful.

I thought this would be a classic problem, but apparently it isn't,
so any help would be much appreciated.

(I'm using TortoiseSVN 1.4.1, with Subversion 1.4.2.)

Cheers,
Francois

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

Re: reconnecting file history

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 24, 2007, at 18:22, Francois Beaune wrote:

> I made the mistake to move a versioned file the "stupid" way:
> I have copied the file to its new place (*not* using svn copy),
> added the new file to svn, deleted the original one, and commited
> the whole thing. Obviously, that was dumb, and the history of
> this file is "lost" (or, to be precise, not easily available anymore).
>
> I am perfectly aware of svn copy, svn move and svn rename,
> and have been using them for years. Well, I just wasn't awake
> enough I suppose.
>
> Is there an "easy" way to fix this now? Many checkins have
> been done since I realized the mistake, so rolling back to before
> this checkin is going to be painful.
>
> I thought this would be a classic problem, but apparently it isn't,
> so any help would be much appreciated.
>
> (I'm using TortoiseSVN 1.4.1, with Subversion 1.4.2.)

I know of no easy way to do this. The only way I can think of would  
be to go back and redo all your steps, beginning with copying the  
file correctly this time.


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


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

Re: reconnecting file history

Posted by Francois Beaune <be...@aist.enst.fr>.
> Francois Beaune wrote:
> ...
>> Is there an "easy" way to fix this now?
> 
> maybe this works:
>  * check out latest version of file, save as file_new.
>  * svn delete file
>  * svn copy -rN http://url/to/file@N http://url/to/file
>    (N=latest revision with all the history)
>  * check out file, copy file_new over it, commit.

Fantastic, worked like a charm :)

Maybe this nice trick deserves a quick mention in the FAQ
or somewhere?

Anyway, thanks a lot guys for the swift answers!

Cheers,
Francois

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

Re: reconnecting file history

Posted by Francois Beaune <be...@aist.enst.fr>.
> Francois Beaune wrote:
> ...
>> Is there an "easy" way to fix this now?
> 
> maybe this works:
>  * check out latest version of file, save as file_new.
>  * svn delete file
>  * svn copy -rN http://url/to/file@N http://url/to/file
>    (N=latest revision with all the history)
>  * check out file, copy file_new over it, commit.

Fantastic, worked like a charm :)

Maybe this nice trick deserves a quick mention in the FAQ
or somewhere?

Again, thanks a lot guys for the swift answers!

Cheers,
Francois

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

Re: reconnecting file history

Posted by Carsten Koch <Ca...@icem.com>.
Francois Beaune wrote:
...
> Is there an "easy" way to fix this now?

maybe this works:
  * check out latest version of file, save as file_new.
  * svn delete file
  * svn copy -rN http://url/to/file@N http://url/to/file
    (N=latest revision with all the history)
  * check out file, copy file_new over it, commit.

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