[prev in list] [next in list] [prev in thread] [next in thread]
List: mercurial-devel
Subject: D10286: mergestate: simplify
From: "joerg.sonnenberger (Joerg Sonnenberger)" <phabricator () mercurial-scm ! org>
Date: 2021-03-28 23:32:22
Message-ID: differential-rev-PHID-DREV-gquxtpfceekj24pducwb-req () mercurial-scm ! org
[Download RAW message or body]
joerg.sonnenberger created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10286
AFFECTED FILES
mercurial/mergestate.py
CHANGE DETAILS
diff --git a/mercurial/mergestate.py b/mercurial/mergestate.py
--- a/mercurial/mergestate.py
+++ b/mercurial/mergestate.py
@@ -11,6 +11,7 @@
hex,
nullhex,
nullid,
+ nullrev,
)
from . import (
error,
@@ -341,7 +342,7 @@
flo = fco.flags()
fla = fca.flags()
if b'x' in flags + flo + fla and b'l' not in flags + flo + fla:
- if fca.node() == nullid and flags != flo:
+ if fca.rev() == nullrev and flags != flo:
if preresolve:
self._repo.ui.warn(
_(
To: joerg.sonnenberger, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic