comparison mercurial/localrepo.py @ 37316:836867586b83

repo: remove now-unused changectx() method (API) repo.changectx(x) was just a synonym for repo[x], so any extensions that fail due to this commit should switch over to that form. Differential Revision: https://phab.mercurial-scm.org/D3037
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 03 Apr 2018 13:19:35 -0700
parents 0a1fb171dc1d
children e826fe7a08c7
comparison
equal deleted inserted replaced
37315:0a1fb171dc1d 37316:836867586b83
1070 1070
1071 def file(self, f): 1071 def file(self, f):
1072 if f[0] == '/': 1072 if f[0] == '/':
1073 f = f[1:] 1073 f = f[1:]
1074 return filelog.filelog(self.svfs, f) 1074 return filelog.filelog(self.svfs, f)
1075
1076 def changectx(self, changeid):
1077 return self[changeid]
1078 1075
1079 def setparents(self, p1, p2=nullid): 1076 def setparents(self, p1, p2=nullid):
1080 with self.dirstate.parentchange(): 1077 with self.dirstate.parentchange():
1081 copies = self.dirstate.setparents(p1, p2) 1078 copies = self.dirstate.setparents(p1, p2)
1082 pctx = self[p1] 1079 pctx = self[p1]