##// END OF EJS Templates
commitablectx: move walk from workingctx
Sean Farley -
r19697:8c95e748 default
parent child Browse files
Show More
@@ -1034,6 +1034,10 b' class commitablectx(basectx):'
1034 """return the ancestor context of self and c2"""
1034 """return the ancestor context of self and c2"""
1035 return self._parents[0].ancestor(c2) # punt on two parents for now
1035 return self._parents[0].ancestor(c2) # punt on two parents for now
1036
1036
1037 def walk(self, match):
1038 return sorted(self._repo.dirstate.walk(match, sorted(self.substate),
1039 True, False))
1040
1037 class workingctx(commitablectx):
1041 class workingctx(commitablectx):
1038 """A workingctx object makes access to data related to
1042 """A workingctx object makes access to data related to
1039 the current working directory convenient.
1043 the current working directory convenient.
@@ -1065,10 +1069,6 b' class workingctx(commitablectx):'
1065 return workingfilectx(self._repo, path, workingctx=self,
1069 return workingfilectx(self._repo, path, workingctx=self,
1066 filelog=filelog)
1070 filelog=filelog)
1067
1071
1068 def walk(self, match):
1069 return sorted(self._repo.dirstate.walk(match, sorted(self.substate),
1070 True, False))
1071
1072 def dirty(self, missing=False, merge=True, branch=True):
1072 def dirty(self, missing=False, merge=True, branch=True):
1073 "check whether a working directory is modified"
1073 "check whether a working directory is modified"
1074 # check subrepos first
1074 # check subrepos first
General Comments 0
You need to be logged in to leave comments. Login now