[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: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Thu, 8 Oct 2009 03:43:03 -0500

On Oct 8, 2009, at 02:53, J. Bakshi wrote:

> Thanks for your responses. Incrementing the revision number after
> the
> import is natural and according to the concept of svn it is
> absolutely
> ok. I want to have little different before providing the repo to the
> users. I like to import all the stuffs of a webfolder of htdocs with
> revision number 0 and then give the repo to the users so that they
> have
> a repo with all the required files/folders with 0 revision number.
> after
> that they continue working with it.

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.)

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

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

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