Submitter | phabricator |
---|---|
Date | Feb. 26, 2018, 5:16 a.m. |
Message ID | <differential-rev-PHID-DREV-ka54fnr3nb3okhvgbqmd-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/28366/ |
State | Superseded |
Headers | show |
Comments
indygreg accepted this revision. indygreg added a comment. This revision is now accepted and ready to land. I agree that making this behavior explicit instead of relying on coercion is better. At least in this case. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2442 To: durin42, #hg-reviewers, indygreg Cc: indygreg, mercurial-devel
Patch
diff --git a/mercurial/filemerge.py b/mercurial/filemerge.py --- a/mercurial/filemerge.py +++ b/mercurial/filemerge.py @@ -520,8 +520,8 @@ baselabel = 'base' env = {'HG_FILE': fcd.path(), 'HG_MY_NODE': short(mynode), - 'HG_OTHER_NODE': str(fco.changectx()), - 'HG_BASE_NODE': str(fca.changectx()), + 'HG_OTHER_NODE': short(fco.changectx().node()), + 'HG_BASE_NODE': short(fca.changectx().node()), 'HG_MY_ISLINK': 'l' in fcd.flags(), 'HG_OTHER_ISLINK': 'l' in fco.flags(), 'HG_BASE_ISLINK': 'l' in fca.flags(),