Wednesday, July 29, 2015

Copy a file in Subversion without dropping the history.

With TortoiseSVN installed, right-click on a file under source control and pick "Repo-browser" out of the "TortoiseSVN" menu to bring up the Repository Browser. Right-click in the Repository Browser on a file (the one you want to copy) and pick "Copy to..." next. You will need to give a path to where the file should be copied to in source control. You may want to open another repo-browser and copy the path to the destination folder out of the URL line so you don't fat-finger it. The copied file will have all of the commit history as the file copied from! I suppose one could "move" a file by undertaking these same steps and then deleting the old file.

No comments:

Post a Comment