##// END OF EJS Templates
commit: pass mergestate into `_process_files` instead of re-reading it...
Pulkit Goyal -
r46299:035302e6 default
parent child Browse files
Show More
@@ -131,7 +131,7 def _prepare_files(tr, ctx, error=False,
131 131 mn = p1.manifestnode()
132 132 files = metadata.ChangingFiles()
133 133 else:
134 mn, files = _process_files(tr, ctx, error=error)
134 mn, files = _process_files(tr, ctx, ms, error=error)
135 135
136 136 if origctx and origctx.manifestnode() == mn:
137 137 origfiles = origctx.files()
@@ -165,7 +165,7 def _get_salvaged(repo, ms, ctx):
165 165 return salvaged
166 166
167 167
168 def _process_files(tr, ctx, error=False):
168 def _process_files(tr, ctx, ms, error=False):
169 169 repo = ctx.repo()
170 170 p1 = ctx.p1()
171 171 p2 = ctx.p2()
@@ -179,7 +179,6 def _process_files(tr, ctx, error=False)
179 179 m = mctx.read()
180 180 m1 = m1ctx.read()
181 181 m2 = m2ctx.read()
182 ms = mergestate.mergestate.read(repo)
183 182
184 183 files = metadata.ChangingFiles()
185 184
General Comments 0
You need to be logged in to leave comments. Login now