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

Re: resetting revision back to zero

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-08-30 23:24:53 CEST

On Aug 30, 2007, at 08:04, John Eric Hamacher wrote:

> On 8/29/07, Andy Levy wrote:
>
>> On 8/29/07, John Eric Hamacher wrote:
>>
>> > For some reason, when I loaded a new project into Subversion, it
>> chose
>> > revision 7 to be my starting point. I have no idea what might
>> be in
>> > previous versions, if anything. I would like to reset my
>> project revision
>> > number to zero. How can I do this? Thanks.
>>
>> Subversion didn't "choose" to make revision 7 your starting point for
>> "some reason." When you performed the import, there had been 6
>> previous commits to that repository. Therefore your import was commit
>> #7.
>>
>> Create a new repository and import your project into that. You can't
>> reset the revision number of an existing repository to any arbitrary
>> value.
>
> Huh, I really didn't do anything but install Subversion before I
> imported my project. But that's OK I'll have to live with it.

You seem to have done 6 other things in the repository before
importing this project. "svn log -v -r1:6 url://of/your/repository"
will show you what those things are.

Subversion does not have per-project revision numbers. (Subversion
also has no concept of a "project"; it just versions files and
directories.) Subversion has per-repository revision numbers. Whether
you make just one repository to hold all your projects, or individual
repositories for each project, is up to you. I prefer the former, but
others prefer the latter. There are pros and cons to each approach.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 30 23:23:32 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.