##// END OF EJS Templates
commitablectx: move user from workingctx
Sean Farley -
r19675:84249d49 default
parent child Browse files
Show More
@@ -957,6 +957,9 b' class commitablectx(basectx):'
957 self._status = stat[:4]
957 self._status = stat[:4]
958 return stat
958 return stat
959
959
960 def user(self):
961 return self._user or self._repo.ui.username()
962
960 class workingctx(commitablectx):
963 class workingctx(commitablectx):
961 """A workingctx object makes access to data related to
964 """A workingctx object makes access to data related to
962 the current working directory convenient.
965 the current working directory convenient.
@@ -987,8 +990,6 b' class workingctx(commitablectx):'
987 p = p[:-1]
990 p = p[:-1]
988 return [changectx(self._repo, x) for x in p]
991 return [changectx(self._repo, x) for x in p]
989
992
990 def user(self):
991 return self._user or self._repo.ui.username()
992 def date(self):
993 def date(self):
993 return self._date
994 return self._date
994 def description(self):
995 def description(self):
General Comments 0
You need to be logged in to leave comments. Login now