[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: Steve Williams <stevewilliams_at_kromestudios.com>
Date: 2006-07-26 03:38:18 CEST

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"

:)

-- 
Sly
This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 26 03:39:36 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.