What happens if I push this button?
Apr. 17th, 2009 01:52 pmHypothetical Question for anyone out there using Subversion:
If I make a "backup" of a project with the following command
$ svn copy http://svn.server.org/project/trunk http://svn.server.org/project/tags/20090417_trunk_backup
And then I mess up the trunk, what do I do to restore the trunk to the backup that I tagged?
If I make a "backup" of a project with the following command
$ svn copy http://svn.server.org/project/trunk http://svn.server.org/project/tags/20090417_trunk_backup
And then I mess up the trunk, what do I do to restore the trunk to the backup that I tagged?
no subject
Date: 2009-04-17 08:48 pm (UTC)The setup I have worked with historically is to create not only tags for backup, but at least one branch from the trunk from which to make working copies. Yeah, redundant. Errors can be introduced to the branch and dealt with in a number of ways (either by merging with the backup tag or by trashing the whole mess and creating a new branch) but the trunk remains pristine. Glows faintly, even.
no subject
Date: 2009-04-17 08:52 pm (UTC)no subject
Date: 2009-04-18 03:23 pm (UTC)Reverse the command?
$ svn copy http://svn.server.org/project/tags/20090417_trunk_backup http://svn.server.org/project/trunk