##// END OF EJS Templates
commitablectx: move tags from workingctx
Sean Farley -
r19690:65ff9fd6 default
parent child Browse files
Show More
@@ -994,6 +994,12 b' class commitablectx(basectx):'
994 def extra(self):
994 def extra(self):
995 return self._extra
995 return self._extra
996
996
997 def tags(self):
998 t = []
999 for p in self.parents():
1000 t.extend(p.tags())
1001 return t
1002
997 class workingctx(commitablectx):
1003 class workingctx(commitablectx):
998 """A workingctx object makes access to data related to
1004 """A workingctx object makes access to data related to
999 the current working directory convenient.
1005 the current working directory convenient.
@@ -1020,12 +1026,6 b' class workingctx(commitablectx):'
1020 p = p[:-1]
1026 p = p[:-1]
1021 return [changectx(self._repo, x) for x in p]
1027 return [changectx(self._repo, x) for x in p]
1022
1028
1023 def tags(self):
1024 t = []
1025 for p in self.parents():
1026 t.extend(p.tags())
1027 return t
1028
1029 def bookmarks(self):
1029 def bookmarks(self):
1030 b = []
1030 b = []
1031 for p in self.parents():
1031 for p in self.parents():
General Comments 0
You need to be logged in to leave comments. Login now