hgext/commitextras.py
changeset 36419 75c76cee1b1b
parent 34975 901a18b03e00
child 39294 1cb7c9777852
equal deleted inserted replaced
36418:d26b0bedfaa4 36419:75c76cee1b1b
    68                     inneropts[r'extra'][k] = v
    68                     inneropts[r'extra'][k] = v
    69             return origcommit(*innerpats, **inneropts)
    69             return origcommit(*innerpats, **inneropts)
    70 
    70 
    71         # This __dict__ logic is needed because the normal
    71         # This __dict__ logic is needed because the normal
    72         # extension.wrapfunction doesn't seem to work.
    72         # extension.wrapfunction doesn't seem to work.
    73         repo.__dict__['commit'] = _wrappedcommit
    73         repo.__dict__[r'commit'] = _wrappedcommit
    74         return orig(ui, repo, *pats, **opts)
    74         return orig(ui, repo, *pats, **opts)
    75     finally:
    75     finally:
    76         del repo.__dict__['commit']
    76         del repo.__dict__[r'commit']