Patchwork D5289: context: remove seemingly impossible code branch

login
register
mail settings
Submitter phabricator
Date Nov. 20, 2018, 12:27 p.m.
Message ID <0802c55956d68b65092c222f29885cd0@localhost.localdomain>
Download mbox | patch
Permalink /patch/36669/
State Not Applicable
Headers show

Comments

phabricator - Nov. 20, 2018, 12:27 p.m.
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




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

Patch

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