New extension: fixrenames

Martin Geisler mg at
Tue Jun 28 01:30:25 CDT 2011

Stanimir Stamenkov <s7an10 at> writes:

> Mon, 27 Jun 2011 15:38:05 +0200, /Martin Geisler/:
>> The extension lets you replay old history in order to detect missing
>> rename information. It basically does:
>>    $ hg update N
>>    $ hg revert --all --rev N+1
>>    $ hg addremove
>>    $ hg commit
>> in a loop over a range of revisions you specify. The new changesets
>> are identical to the old changesets, with the exception of the added
>> rename information.
> That may prove really helpful for me when converting from SVN - I'll
> give it a try.

Let us know how it goes.

> In regard:
> I really think such functionality should be incorporated into the
> convert extension, also.

I did not think of that since "just doing it" in a stand-alone extension
was so simple. You are right that this functionality could fit in the
convert extension.

Martin Geisler

aragost Trifork
Professional Mercurial support

More information about the Mercurial mailing list