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