Submitter | Boris Feld |
---|---|
Date | Oct. 4, 2018, 2:44 p.m. |
Message ID | <36a3f6fc8dbd727e1369.1538664279@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/35453/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -787,6 +787,11 @@ class basefilectx(object): if toprev is not None: return self._adjustlinkrev(toprev, inclusive=True) + elif r'_descendantrev' in attrs: + introrev = self._adjustlinkrev(self._descendantrev) + # be nice and cache the result of the computation + self._changeid = introrev + return introrev else: return self.linkrev()