[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: use svnadmin to set revision number?

From: Nico Kadel-Garcia <nkadel_at_comcast.net>
Date: 2006-07-26 04:02:59 CEST

Steve Williams wrote:
> Tom Vaughan wrote:
>> we migrated a subversion repository from one machine to another.
>> about a week later, we had a harddrive failure on the new machine.
>> unfortunately we hadn't put the new machine on the backup schedule.
>> so we've lost the changesets since the migration, but that's not a
>> big deal. i have the "canonical" version checked out. but i'm about
>> 50 revision numbers beyond the old repository. what i want to do
>> (other suggestions welcomed) is restore the old repository, check in
>> what i have, and then "add 50" to the repository version number.
>> this way everyone else will be none the wiser, and have to update to
>> my canonical copy before they check-in (assuming they have missed a
>> couple of the most recent check ins). i hope this is clear. so my
>> question is how to "add 50"? i didn't find this in the svn book.
>> thanks much.
> It may be rather brute force, but...
> for i = 0 to 24
> echo bump >bump.txt
> svn add bump.txt
> svn ci bump.txt -m "Bump"
> svn rm bump.txt
> svn ci bump.txt -m "Bumped"

This will leave you fairly messed up, I think. I'd make a copy of everything
*but* the ".svn directories, do a checkout of the new repository there, then
slap the o<Z^iles on top of it. Then submit the old repository as a change.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 26 04:04:00 2006

This is an archived mail posted to the Subversion Users mailing list.