Comments
Patch
@@ -155,6 +155,8 @@ class basectx(object):
return self._node
def hex(self):
return hex(self.node())
+ def uncommitted(self):
+ return self._rev is None or self._rev >= len(self._repo)
def manifest(self):
return self._manifest
def phasestr(self):
@@ -687,6 +689,8 @@ class basefilectx(object):
return self._changectx.node()
def hex(self):
return self._changectx.hex()
+ def uncommitted(self):
+ return self._changectx.uncommitted()
def user(self):
return self._changectx.user()
def date(self):