How to migrate only HEAD revision to a new repository

View: New views
6 Messages — Rating Filter:   Alert me  

How to migrate only HEAD revision to a new repository

by Vadym Chepkov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

It seems like a trivial task, but I wasn't able to find a proper solution.
We store a big set of configuration files in an svn repository. Now I want to start a fresh repository and migrate all these files into a new repository, but without preserving history, only the HEAD of this directory. I know I could just export/import into an new repository, but this wouldn't preserve all my custom properties and standard properties, like svn:keywords, svn:eol-style, etc. How I can accomplish this task properly? Thank you.

Sincerely yours,
  Vadym Chepkov

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

Re: How to migrate only HEAD revision to a new repository

by Lars Tiefland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/7 Vadym Chepkov <chepkov@...>
Hi,

It seems like a trivial task, but I wasn't able to find a proper solution.
We store a big set of configuration files in an svn repository. Now I want to start a fresh repository and migrate all these files into a new repository, but without preserving history, only the HEAD of this directory. I know I could just export/import into an new repository, but this wouldn't preserve all my custom properties and standard properties, like svn:keywords, svn:eol-style, etc. How I can accomplish this task properly? Thank you.

Sincerely yours,
 Vadym Chepkov

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].


Hi,

svnadmin dump /path/to/old_repository/ -rHEAD > head.txt

followed by a

svnadmin load  /path/to/new_repository < head.txt

is your friend.
--
Live Long And Prosper,

Lars Tiefland

RE: Re: How to migrate only HEAD revision to a new repository

by Vadym Chepkov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Unfortunately, this creates a dump with a bogus Revision-number (I would like to start with 1), also it has bogus svn:mergeinfo I need to drop. Do I have to edit dump file manually or there is an "approved" tool to accomplish this task?

I tried
svnadmin dump -rHEAD /var/svn/repos | svndumpfilter include configs --renumber-revs
--skip-missing-merge-sources --drop-empty-revs

But I get this error then:

svndumpfilter: No valid revision range 'start' in filtered stream


>
> Hi,
>
> svnadmin dump /path/to/old_repository/ -rHEAD > head.txt
>
> followed by a
>
> svnadmin load  /path/to/new_repository < head.txt
>
> is your friend.
> --
> Live Long And Prosper,
>
> Lars Tiefland

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

Re: Re: How to migrate only HEAD revision to a new repository

by Henrik Sundberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Nov 8, 2009 at 4:53 AM, Vadym Chepkov <chepkov@...> wrote:
> I tried
> svnadmin dump -rHEAD /var/svn/repos | svndumpfilter include configs --renumber-revs
> --skip-missing-merge-sources --drop-empty-revs
>
> But I get this error then:
> svndumpfilter: No valid revision range 'start' in filtered stream

Won't your new repository consist of full copies of all tags/branches
when you do like this?
I.e. Isn't it likely that the head only repo will be bigger than the full repo?

/$

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

RE: Re: Re: How to migrate only HEAD revision to a new repository

by Vadym Chepkov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

the path I 'include' doesn't have any tags or branches,
I want to just just get rid of excessive history that has no value to me.

I take it I will have to do export/import and write a script that will go recursively and populate properties I would like to keep :(

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

Re: How to migrate only HEAD revision to a new repository

by Ryan Schmidt-60 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Nov 7, 2009, at 21:53, Vadym Chepkov wrote:

> Unfortunately, this creates a dump with a bogus Revision-number (I  
> would like to start with 1)

I'm surprised it did not start with 1. What did it start with?


> also it has bogus svn:mergeinfo I need to drop. Do I have to edit  
> dump file manually or there is an "approved" tool to accomplish this  
> task?

svndumptool is a good tool for manipulating dumpfiles. It may be able  
to help you.

http://svn.borg.ch/svndumptool/

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].