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

Re: how to import without changing revision number ?

From: J. Bakshi <joydeep_at_infoservices.in>
Date: Thu, 08 Oct 2009 16:49:36 +0530

Ryan Schmidt wrote:
> On Oct 8, 2009, at 03:56, J. Bakshi wrote:
>
>
>> Ryan Schmidt wrote:
>>
>>> So you're trying to make a "template repository" for your users to
>>> use? Ok, you can do that. Set up your repository how you want it,
>>> then
>>> "svnadmin dump -rHEAD /path/to/repo > /path/to/dumpfile". This will
>>> dump only a single revision, representing the way the repository
>>> looks
>>> at HEAD. This "template dumpfile" can then be turned into a new
>>> repository with "svnadmin create /path/to/newrepo && svnadmin load
>>> /path/to/newrepo --ignore-uuid < /path/to/dumpfile". The new
>>> repository will be at revision 1. (Revision 0 is empty in every
>>> repository.)
>>>
>> Your assumption is absolutely right. I am sorry that I could not
>> clarify
>> it properly but you have done it by "template repository" . And the
>> solution is perfect.
>> millions of thanks and have a great day.
>>
>
> You're welcome!
>
> I didn't specifically point out why above, but please do remember to
> use --ignore-uuid whenever creating a repository from the template
> dumpfile. If you do not, you will over time end up with multiple
> repositories which, though they have different contents, share a uuid.
> The uuid is the "universally unique identifier" of a repository, so
> you must take care that it is in fact universally unique, and not
> identical.
>
> This is also the reason you should distribute and use the dumpfile,
> and not distribute and use a repository itself (since your template
> repository, like all other repositories, would have a uuid already
> associated with it).
>

I do remember,
thanks for sharing all these valuable information.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2404915

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-08 13:20:46 CEST

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.