D5289: context: remove seemingly impossible code branch

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Nov 20 07:27:13 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1423ff45c322: context: remove seemingly impossible code branch (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5289?vs=12566&id=12570

REVISION DETAIL
  https://phab.mercurial-scm.org/D5289

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -562,9 +562,7 @@
 
     @propertycache
     def _changeid(self):
-        if r'_changeid' in self.__dict__:
-            return self._changeid
-        elif r'_changectx' in self.__dict__:
+        if r'_changectx' in self.__dict__:
             return self._changectx.rev()
         elif r'_descendantrev' in self.__dict__:
             # this file context was created from a revision with a known



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list