On Apr 11, 2007, at 10:29, Kylo Ginsberg wrote:
> I have a scenario where I would like to dump a small repository and
> load it into a large one. Essentially I want to tack all the
> revisions of the small repo on to the tail end of the large one with
> their date being "at load time".
>
> More specifically: I want the original large repository to keep
> revision #s (so merge comments in log entries are coherent) but I
> don't want to preserve revision #s from the small repository. I want
> the -r DATE syntax to work, with the understanding that all revs from
> the small repository now appear to be from the time of the load.
>
> Is this possible with the svnadmin dump/load, svndumpfilter, or these
> other scripts/tools that have been mentioned.
If you dump the small repo and load it into the big repo, the
revisions from the small repo will not suddenly get today's date and
time. They will still have the same date and time that they had in
the small repo.
But you can change a revision's date and time. You may be able to
manipulate the dumpfile in some way. However, I recommend just using
"svn propset --revprop -r 123 svn:date foo" where "123" is the
revision number and "foo" is a date in Subversion format (which you
can discover by running "svn propget --revprop -r 123 svn:date"). You
could do these propset commands in the small repo for all revisions
of the small repo before dumping it. (If you set the date to "now,"
you would need to be sure that nobody commits anything else to the
big repo between "now" and whenever you're done loading, so that the
revisions don't get out of order. Or you could set the date to some
time in the future, and plan to load them into the big repo at that
time.) Or you could set the revisions' dates in the big repo after
you load them in. (You would have to figure out which range of
revisions of the big repo came from the small repo.) Either way, you
will need a pre-revprop-change hook in one repo or the other to
enable you to change the svn:date property. You can remove the pre-
revprop-change hook when you're done changing the dates.
--
To reply to the mailing list, please use your mailer's Reply To All
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 11 17:43:02 2007