Show More
@@ -67,6 +67,7 b' class changectx(object):' | |||||
67 | def files(self): return self._changeset[3] |
|
67 | def files(self): return self._changeset[3] | |
68 | def description(self): return self._changeset[4] |
|
68 | def description(self): return self._changeset[4] | |
69 | def branch(self): return self._changeset[5].get("branch") |
|
69 | def branch(self): return self._changeset[5].get("branch") | |
|
70 | def tags(self): return self._repo.nodetags(self._node) | |||
70 |
|
71 | |||
71 | def parents(self): |
|
72 | def parents(self): | |
72 | """return contexts for each parent changeset""" |
|
73 | """return contexts for each parent changeset""" | |
@@ -413,6 +414,11 b' class workingctx(changectx):' | |||||
413 | def clean(self): return self._status[5] |
|
414 | def clean(self): return self._status[5] | |
414 | def branch(self): return self._repo.dirstate.branch() |
|
415 | def branch(self): return self._repo.dirstate.branch() | |
415 |
|
416 | |||
|
417 | def tags(self): | |||
|
418 | t = [] | |||
|
419 | [t.extend(p.tags()) for p in self.parents()] | |||
|
420 | return t | |||
|
421 | ||||
416 | def parents(self): |
|
422 | def parents(self): | |
417 | """return contexts for each parent changeset""" |
|
423 | """return contexts for each parent changeset""" | |
418 | return self._parents |
|
424 | return self._parents |
General Comments 0
You need to be logged in to leave comments.
Login now