##// END OF EJS Templates
record: remove dependency on extensions module in dorecord...
Laurent Charignon -
r24270:c256ae48 default
parent child Browse files
Show More
@@ -253,7 +253,11 b' def dorecord(ui, repo, commitfunc, cmdsu'
253 for chunk, l in patch.difflabel(lambda: args):
253 for chunk, l in patch.difflabel(lambda: args):
254 orig(chunk, label=label + l)
254 orig(chunk, label=label + l)
255 oldwrite = ui.write
255 oldwrite = ui.write
256 extensions.wrapfunction(ui, 'write', wrapwrite)
256
257 def wrap(*args, **kwargs):
258 return wrapwrite(oldwrite, *args, **kwargs)
259 setattr(ui, 'write', wrap)
260
257 try:
261 try:
258 return cmdutil.commit(ui, repo, recordfunc, pats, opts)
262 return cmdutil.commit(ui, repo, recordfunc, pats, opts)
259 finally:
263 finally:
General Comments 0
You need to be logged in to leave comments. Login now