fixing an old patch

Sam Steingold sds at gnu.org
Tue May 17 20:12:33 UTC 2011


Suppose I have a repo with, say, 10 revisions: 0..9.
One of them (say, rev6) is horribly broken, I want to fix it.
If this were CVS, I would have just committed a fix (rev10) and lived
with broken revisions 6,7,8,9 - horribly breaking bisect.
However, this is mercurial, so I can do better.
I can
- export and strip rev9,8,7,6;
- apply rev6, fix it, commit;
- import rev7,8,9.
Can I do better?
E.g., can I somehow modify rev6 in place?
(one improvement seems to be that I can use strip+unbundle instead of
export+strip+import, right?)
I don't mind if rev6 becomes rev9 and revs7,8,9 become 6,7,8 respectively.
(Let us assume that the patches 6,7,8,9 commute in the sense that they
can be applied without conflicts in any order and that no clones are involved).

Thanks!

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://ffii.org http://honestreporting.com http://mideasttruth.com
http://jihadwatch.org http://palestinefacts.org http://openvotingconsortium.org
.sigs are like your face - rarely seen by you and uglier than you think



More information about the Mercurial mailing list