Comments
Patch
@@ -987,10 +987,12 @@
def clean(self):
assert self._clean is not None # must call status first
return self._clean
def branch(self):
return encoding.tolocal(self._extra['branch'])
+ def closesbranch(self):
+ return 'close' in self._extra
class workingctx(commitablectx):
"""A workingctx object makes access to data related to
the current working directory convenient.
date - any valid date string or (unixtime, offset), or None.
@@ -1014,12 +1016,10 @@
p = self._repo.dirstate.parents()
if p[1] == nullid:
p = p[:-1]
return [changectx(self._repo, x) for x in p]
- def closesbranch(self):
- return 'close' in self._extra
def extra(self):
return self._extra
def tags(self):
t = []