equal
deleted
inserted
replaced
58 self.path = path |
58 self.path = path |
59 self.transplantfile = transplantfile |
59 self.transplantfile = transplantfile |
60 self.opener = opener |
60 self.opener = opener |
61 |
61 |
62 if not opener: |
62 if not opener: |
63 self.opener = scmutil.opener(self.path) |
63 self.opener = scmutil.vfs(self.path) |
64 self.transplants = {} |
64 self.transplants = {} |
65 self.dirty = False |
65 self.dirty = False |
66 self.read() |
66 self.read() |
67 |
67 |
68 def read(self): |
68 def read(self): |
101 |
101 |
102 class transplanter(object): |
102 class transplanter(object): |
103 def __init__(self, ui, repo, opts): |
103 def __init__(self, ui, repo, opts): |
104 self.ui = ui |
104 self.ui = ui |
105 self.path = repo.join('transplant') |
105 self.path = repo.join('transplant') |
106 self.opener = scmutil.opener(self.path) |
106 self.opener = scmutil.vfs(self.path) |
107 self.transplants = transplants(self.path, 'transplants', |
107 self.transplants = transplants(self.path, 'transplants', |
108 opener=self.opener) |
108 opener=self.opener) |
109 def getcommiteditor(): |
109 def getcommiteditor(): |
110 editform = cmdutil.mergeeditform(repo[None], 'transplant') |
110 editform = cmdutil.mergeeditform(repo[None], 'transplant') |
111 return cmdutil.getcommiteditor(editform=editform, **opts) |
111 return cmdutil.getcommiteditor(editform=editform, **opts) |