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

RE: repository split

From: Jason Malinowski <jason_at_jason-m.com>
Date: Fri, 26 Jun 2009 17:21:09 -0500

> A subversion dump is a binary file, and editing it with sed is not a
> good idea.

I would normally agree, but in this case there is no such tool that I
know of. And sed is (in my opinion) more likely to not munge anything as
compared to doing a find/replace with a text editor. But I believe the
dumpfile hashes the content of files and props, and thus if sed
accidentally modifies any of those it will show up when loading. If
memory serves I tested this to confirm it, but I make no guarantees.

Jason Malinowski

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2009b_at_ryandesign.com]
Sent: Friday, June 26, 2009 2:56 PM
To: Jason Malinowski
Cc: 'Vadym Chepkov'; users_at_subversion.tigris.org
Subject: Re: repository split

On Jun 26, 2009, at 09:03, Jason Malinowski wrote:

> Agreed, one repository's UUID will have to change, so it can't be 100%
> transparent.

I still say both repositories must be given new UUIDs to indicate
that they are different repositories. Otherwise it would be possible
for a user to, say, take a working copy of projectB from the old
combined repository and "svn switch" it to some place within the new
projectA repository, since the new projectA repository has the same
UUID as the old combined repository. But that wouldn't make sense.

> However, if you're OK making it non-transparent, and force your
> devs to
> re-check out. The trick is to go editing your dump files after you've
> ran them through svndumpfilter but before you import them. If you look
> at a dump file, you will see lines like this:
>
> Node-path: projectA/trunk/file.txt
>
> ...
>
> Node-copyfrom-path: projectA/trunk/someotherfile.txt
>
> In this case, do something like:
>
> cat dumpfile | sed 's|-path: projectA/|-path: |g' > dumpfile2
>
> And then diff the two to make sure you used sed right. ;-)

A subversion dump is a binary file, and editing it with sed is not a
good idea. You should use a tool that has been designed to edit
dumpfiles, like svndumpfilter or svndumptool.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageI
d=2365830

To unsubscribe from this discussion, e-mail:
[users-unsubscribe_at_subversion.tigris.org].

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-27 00:22:18 CEST

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