tcepsa: (Default)
[personal profile] tcepsa
Hypothetical 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?

Date: 2009-04-17 08:48 pm (UTC)
From: [identity profile] adularia.livejournal.com
That sounds like the correct situation for merge, really. I sometimes fiddle with deleting specific files and updating them to specific version numbers from the past, but I don't recommend such shenanigans in a trunk.

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.

Date: 2009-04-17 08:52 pm (UTC)
From: [identity profile] adularia.livejournal.com
Apropos of nothing, I fixed my multimeter, with an automotive fuse holder. Small-current testing works again. Yay!

Date: 2009-04-18 03:23 pm (UTC)
From: [identity profile] elkor.livejournal.com
what do I do to restore the trunk to the backup that I tagged?

Reverse the command?

$ svn copy http://svn.server.org/project/tags/20090417_trunk_backup http://svn.server.org/project/trunk

Profile

tcepsa: (Default)
tcepsa

April 2015

S M T W T F S
   12 34
567891011
12131415161718
19202122232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 1st, 2026 04:17 am
Powered by Dreamwidth Studios