> On Jul 9, 2017, at 2:24 PM, Martin von Zweigbergk <martinv...@google.com> 
> wrote:
> 
> On Sat, Jul 8, 2017 at 4:51 PM, Jun Wu <qu...@fb.com> wrote:
>> # HG changeset patch
>> # User Jun Wu <qu...@fb.com>
>> # Date 1499557831 25200
>> #      Sat Jul 08 16:50:31 2017 -0700
>> # Node ID d75e65724d2bbcf17fcaaad705e463e84a3de5d2
>> # Parent  9a325ae88021e0e02a87ef1ae6baa8a199405140
>> # Available At https://bitbucket.org/quark-zju/hg-draft
>> #              hg pull https://bitbucket.org/quark-zju/hg-draft -r 
>> d75e65724d2b
>> histedit: unify strip backup files on success (BC)
>> 
>> Previously we wrote two different strip backup files on success. This patch
>> unifies them. It will make scmutil.cleanupnodes migration more smooth.
> 
> Makes sense to me. I'm queuing the series, thanks.
> 
> Augie, do you remember if there was a reason to keep them separate?

The only reason was structural in the code: histedit has “intermediate” nodes 
which are an implementation detail, and “old” nodes, which are the precursors 
to the end state. Internally, the lists are separate because you always want to 
reap “intermediate" nodes, but might want to preserve “old” and in --keep or 
--abort cases.

It might be nice to keep them separate but have one be marked 
“histedit-internal” and “histedit-before” or something.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to