Comments
Patch
@@ -108,10 +108,13 @@
raise error.ManifestLookupError(self._node, path,
_('not found in manifest'))
return node, flag
+ def filenode(self, path):
+ return self._fileinfo(path)[0]
+
class changectx(context):
"""A changecontext object makes access to data related to a particular
changeset convenient. It represents a read-only context already presnt in
the repo."""
def __init__(self, repo, changeid=''):
@@ -329,13 +332,10 @@
troubles.append('bumped')
if self.divergent():
troubles.append('divergent')
return troubles
- def filenode(self, path):
- return self._fileinfo(path)[0]
-
def flags(self, path):
try:
return self._fileinfo(path)[1]
except error.LookupError:
return ''