##// END OF EJS Templates
commitablectx: move branch from workingctx
Sean Farley -
r19687:54b3b482 default
parent child Browse files
Show More
@@ -987,6 +987,8 b' class commitablectx(basectx):'
987 def clean(self):
987 def clean(self):
988 assert self._clean is not None # must call status first
988 assert self._clean is not None # must call status first
989 return self._clean
989 return self._clean
990 def branch(self):
991 return encoding.tolocal(self._extra['branch'])
990
992
991 class workingctx(commitablectx):
993 class workingctx(commitablectx):
992 """A workingctx object makes access to data related to
994 """A workingctx object makes access to data related to
@@ -1014,8 +1016,6 b' class workingctx(commitablectx):'
1014 p = p[:-1]
1016 p = p[:-1]
1015 return [changectx(self._repo, x) for x in p]
1017 return [changectx(self._repo, x) for x in p]
1016
1018
1017 def branch(self):
1018 return encoding.tolocal(self._extra['branch'])
1019 def closesbranch(self):
1019 def closesbranch(self):
1020 return 'close' in self._extra
1020 return 'close' in self._extra
1021 def extra(self):
1021 def extra(self):
General Comments 0
You need to be logged in to leave comments. Login now