Comments
Patch
@@ -992,10 +992,16 @@
def closesbranch(self):
return 'close' in self._extra
def extra(self):
return self._extra
+ def tags(self):
+ t = []
+ for p in self.parents():
+ t.extend(p.tags())
+ return t
+
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.
user - username string, or None.
@@ -1018,16 +1024,10 @@
p = self._repo.dirstate.parents()
if p[1] == nullid:
p = p[:-1]
return [changectx(self._repo, x) for x in p]
- def tags(self):
- t = []
- for p in self.parents():
- t.extend(p.tags())
- return t
-
def bookmarks(self):
b = []
for p in self.parents():
b.extend(p.bookmarks())
return b