[PATCH] Issue919: add a standard extension to recreate hardlinks between repositories

Jesse Glick Jesse.Glick at Sun.COM
Tue Dec 16 21:54:10 CST 2008


Brendan Cully wrote:
> Good idea. Unfortunately, this patch is whitespace mangled.

Sorry about that. Was having trouble with patchbomb (just hangs if you get connection info wrong) and resorted to pasting into a message manually. Will try again.

> We probably should also make it take only a SOURCE argument, using the current repo as the target?

It could be done that way. (Or with only a TARGET argument, using the current repo as the source.) To me it seemed more intuitive as a global command taking two repos: 
the operation is basically symmetrical, the only real difference being that you need write permissions to the destination repo and not the source repo. When I used the 
command today, I did something like

cd .../my-dir-of-repos
hg relink trunk some-branch
hg relink trunk another-branch
...

where those branches had at one time been cloned out of trunk (often using --rev, so not linked at all).

No strong opinion.

TK Soh wrote:
> Incidentally, should the command be 'relink', instead of 'hardlink'?

Probably so. Changed that way in new patch.


More information about the Mercurial-devel mailing list