##// END OF EJS Templates
fix: add a monkey-patchable point after all new revisions have been committed...
Danny Hooper -
r38847:64535d43 @98 default
parent child Browse files
Show More
@@ -182,8 +182,23 b' def fix(ui, repo, *pats, **opts):'
182 182 replacerev(ui, repo, ctx, filedata[rev], replacements)
183 183 del filedata[rev]
184 184
185 replacements = {prec: [succ] for prec, succ in replacements.iteritems()}
186 scmutil.cleanupnodes(repo, replacements, 'fix', fixphase=True)
185 cleanup(repo, replacements, bool(filedata[wdirrev]))
186
187 def cleanup(repo, replacements, wdirwritten):
188 """Calls scmutil.cleanupnodes() with the given replacements.
189
190 "replacements" is a dict from nodeid to nodeid, with one key and one value
191 for every revision that was affected by fixing. This is slightly different
192 from cleanupnodes().
193
194 "wdirwritten" is a bool which tells whether the working copy was affected by
195 fixing, since it has no entry in "replacements".
196
197 Useful as a hook point for extending "hg fix" with output summarizing the
198 effects of the command, though we choose not to output anything here.
199 """
200 replacements = {prec: [succ] for prec, succ in replacements.iteritems()}
201 scmutil.cleanupnodes(repo, replacements, 'fix', fixphase=True)
187 202
188 203 def getworkqueue(ui, repo, pats, opts, revstofix, basectxs):
189 204 """"Constructs the list of files to be fixed at specific revisions
General Comments 0
You need to be logged in to leave comments. Login now