Move svn folder while keeping history of files

2,568 views
Skip to first unread message

romainb...@gmail.com

unread,
Aug 7, 2018, 6:10:02 AM8/7/18
to TortoiseSVN
Hello,

I am trying to move a svn folder one level up. The actual structure of my project is myproject/trunk/trunk (it seems that I made a mistake when I created the original repository). I would like to have myproject/trunk.

Using TortoiseSVN, I can right-drag my files one level up, this will keep the history of the whole folder. The point is that, I lost the history of each individual file. Is there a mean to keep both history of the folder and files?

To sum up: (1) when my project looks like myproject/trunk/myfiles (which I don't want because it duplicates trunk): I can see the complete history from either the folder 'myproject' or any of 'myfiles' (2) after I right drag 'myfiles' into myproject: the complete history is still available from the folder 'myproject' but not any more from any of 'myfiles'.

TY

Stefan

unread,
Aug 7, 2018, 9:02:35 AM8/7/18
to TortoiseSVN


On Tuesday, August 7, 2018 at 12:10:02 PM UTC+2, Romain Barillot wrote:
Hello,

I am trying to move a svn folder one level up. The actual structure of my project is myproject/trunk/trunk (it seems that I made a mistake when I created the original repository). I would like to have myproject/trunk.

Using TortoiseSVN, I can right-drag my files one level up, this will keep the history of the whole folder. The point is that, I lost the history of each individual file. Is there a mean to keep both history of the folder and files?

If you right-drag the folder and use "SVN move versioned item(s) here", then you keep the history. Even the history of the files within the folder.
But, the log dialog won't show the history unless you uncheck the box "Stop on copy/rename".

Stefan

romainb...@gmail.com

unread,
Aug 7, 2018, 10:56:59 AM8/7/18
to TortoiseSVN
Thank you for your answer Stephan.
Actually, I did exactly what you say, but the log dialog of a file or a folder inside "myproject" won't show complete history (only from the move), even with the box "Stop on copy/rename" unchecked.
Reply all
Reply to author
Forward
0 new messages