What the title says.
A branch got removed from our repository, and now we think it has code we want to keep after all...
Thanks for any advice -- command line, Tortoise, SmartSVN, all good...
views:
105answers:
4
+6
A:
Copy the revision before it was removed, this will restore the branch as it existed in [REVISION] to the HEAD revision.:
svn copy -r [REVISION] http://svn/path/to/branch http://svn/path/to/branch
Edit: Clarification added thanks to Michael Hackner.
MarkPowell
2009-10-30 19:56:26
To clarify: this will restore the branch as it existed in [REVISION] to the HEAD revision.
Michael Hackner
2009-10-30 20:47:11
Thanks for the reply. I did this with checkout, instead, to get a local copy.
Number8
2009-10-30 22:43:28
A:
Is the server a Unix box? If so, you can try plugging it into another machine and then without mounting it, dd the contents of the device to a file... You could then use a combination of strings and grep to locate the bits of value... Though this is tedious and not much fun...
dicroce
2009-10-30 20:00:25
This isn't necessary with Subversion. Subversion keeps stuff, unless you dump the contents of the repository to another file, remove stuff from that, and dump it back in. (Yes, that does sometimes constitute a problem.) The data's there somewhere, the only problem is getting Subversion to use it.
David Thornley
2009-10-30 20:05:11
Since the OP specifically mentioned TortoiseSVN, and that's a shell extension for Windows Explorer, chances are VERY good it's not a Unix box. Also, as David mentioned, none of the other stuff in your answer applies either.
Ken White
2009-10-30 20:08:12
diroce asked if the server was Unix. TortoiseSVN is a client. The fact that a client runs on Windows tells us nothing about the server's OS.
cdmckay
2009-10-30 20:14:55
A:
Can't you use repo browser and go back a couple revisions?
Am I missing something?
Chuck Conway
2009-10-30 20:02:23
Not a regular Tortoise user; so far, that has the easiest to use interface for browsing previous versions.Thanks.
Number8
2009-10-30 22:42:23