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

Re: Change Version Number

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-01-17 07:13:45 CET

On Jan 16, 2007, at 23:46, B. Smith-Mannschott wrote:

> On Jan 17, 2007, at 00:01, Ryan Schmidt wrote:
>
>> On Jan 16, 2007, at 16:46, Bryan Kardisco wrote:
>>
>>> I've been setting up a subversion server all nice and neat and
>>> it's where I want it to be -- including uploading the folders and
>>> such. However, it says I'm on revision #9 and I'd really like it
>>> to say Version 1 Revision 1.
>>>
>>> I've done this in the past but I can't really recall what to do.
>>
>> Oh. Here you go:
>>
>> http://svn.haxx.se/users/archive-2006-11/1058.shtml
>
> It doesn't sound like this is what you want. The tip from the
> mailing list will give you a repository containing only the first
> revision of your new repository (which contains 9 revisions).

No, that is not correct. The previous answer from November 2006 will
give you a new repository at revision 1 which represents the state of
the old repository at its HEAD revision, which is what Bryan asked
about. I just tried it out again to verify that the solution is correct.

> Presumably, you'd like all the changes you made in setting up your
> repository (9 revisions worth) to be sort of "flattened" down to 1
> revision. At least that's what it sounds like.

And that's what the solution I linked above provides.

> The short answer is: **don't bother**.
>
> The longer answer is: Every change to the repository creates a new
> revision. All the revision number does is count these revisions You
> happened to take 9 revisions to get the repository "set up". *Who
> cares?* Don't try to force a meaning onto the revision number that
> it doesn't have.

Agreed.

> For the obsessive compulsive: You *could* "svn export" your
> repository and then re-import the result into a new repository.

The problem with the "svn export" strategy is that it loses all
Subversion properties, both revision properties and versioned
properties. The above dump/load solution does not have this drawback.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 17 07:14:13 2007

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.