How to batch-rewrite history
Nikolaus Rath
Nikolaus at rath.org
Fri Oct 9 02:53:15 UTC 2015
On Oct 08 2015, Dave S <snidely.too at gmail.com> wrote:
> On Oct 2, 2015 2:04 PM, "Nikolaus Rath" <Nikolaus at rath.org> wrote:
>>
>> Hello,
>>
>> I would like to batch-edit a number of commits to automatically make
>> modifications to author and commit message (being able to apply a few
>> regular expressions would be fine).
>>
>> What's the easiest way to do that?
>
> Are you able to use the latest release of Mercurial?
Yes. What do you have in mind?
In the meantime, I found the following solution myself:
$ hg export -r <x>:tip -g -o archive.txt
$ #batch process archive.txt
$ hg strip <x>
$ hg import archive.txt
so far it seems to work. Are there any potential problems with that?
Best,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
More information about the Mercurial
mailing list