##// END OF EJS Templates
commitablectx: move closesbranch from workingctx
Sean Farley -
r19688:21e10681 default
parent child Browse files
Show More
@@ -989,6 +989,8 b' class commitablectx(basectx):'
989 return self._clean
989 return self._clean
990 def branch(self):
990 def branch(self):
991 return encoding.tolocal(self._extra['branch'])
991 return encoding.tolocal(self._extra['branch'])
992 def closesbranch(self):
993 return 'close' in self._extra
992
994
993 class workingctx(commitablectx):
995 class workingctx(commitablectx):
994 """A workingctx object makes access to data related to
996 """A workingctx object makes access to data related to
@@ -1016,8 +1018,6 b' class workingctx(commitablectx):'
1016 p = p[:-1]
1018 p = p[:-1]
1017 return [changectx(self._repo, x) for x in p]
1019 return [changectx(self._repo, x) for x in p]
1018
1020
1019 def closesbranch(self):
1020 return 'close' in self._extra
1021 def extra(self):
1021 def extra(self):
1022 return self._extra
1022 return self._extra
1023
1023
General Comments 0
You need to be logged in to leave comments. Login now