##// END OF EJS Templates
context: avoid using a context object as a changeid...
Martin von Zweigbergk -
r37189:daef13da default
parent child Browse files
Show More
@@ -1086,10 +1086,11 b' class localrepository(object):'
1086 if f not in pctx and s not in pctx:
1086 if f not in pctx and s not in pctx:
1087 self.dirstate.copy(None, f)
1087 self.dirstate.copy(None, f)
1088
1088
1089 def filectx(self, path, changeid=None, fileid=None):
1089 def filectx(self, path, changeid=None, fileid=None, changectx=None):
1090 """changeid can be a changeset revision, node, or tag.
1090 """changeid can be a changeset revision, node, or tag.
1091 fileid can be a file revision or node."""
1091 fileid can be a file revision or node."""
1092 return context.filectx(self, path, changeid, fileid)
1092 return context.filectx(self, path, changeid, fileid,
1093 changectx=changectx)
1093
1094
1094 def getcwd(self):
1095 def getcwd(self):
1095 return self.dirstate.getcwd()
1096 return self.dirstate.getcwd()
@@ -561,7 +561,7 b' class mergestate(object):'
561 fcd = self._filectxorabsent(hash, wctx, dfile)
561 fcd = self._filectxorabsent(hash, wctx, dfile)
562 fco = self._filectxorabsent(onode, octx, ofile)
562 fco = self._filectxorabsent(onode, octx, ofile)
563 # TODO: move this to filectxorabsent
563 # TODO: move this to filectxorabsent
564 fca = self._repo.filectx(afile, fileid=anode, changeid=actx)
564 fca = self._repo.filectx(afile, fileid=anode, changectx=actx)
565 # "premerge" x flags
565 # "premerge" x flags
566 flo = fco.flags()
566 flo = fco.flags()
567 fla = fca.flags()
567 fla = fca.flags()
General Comments 0
You need to be logged in to leave comments. Login now