Mercurial > hg
comparison hgext/histedit.py @ 43373:de2c8722a787 stable
py3: use native strings as keys into **opts in chistedit
Now you should be able to successfully confirm your histedit plan (at
least in the case I tried). Even continuing after conflicts and
finishing the histedit worked.
Differential Revision: https://phab.mercurial-scm.org/D7186
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 31 Oct 2019 15:03:12 -0700 |
parents | 66a0c5faed1e |
children | b27cf9f52194 |
comparison
equal
deleted
inserted
replaced
43372:66a0c5faed1e | 43373:de2c8722a787 |
---|---|
1685 ui.status(_(b"performing changes\n")) | 1685 ui.status(_(b"performing changes\n")) |
1686 rules = makecommands(rc) | 1686 rules = makecommands(rc) |
1687 with repo.vfs(b'chistedit', b'w+') as fp: | 1687 with repo.vfs(b'chistedit', b'w+') as fp: |
1688 for r in rules: | 1688 for r in rules: |
1689 fp.write(r) | 1689 fp.write(r) |
1690 opts[b'commands'] = fp.name | 1690 opts['commands'] = fp.name |
1691 return _texthistedit(ui, repo, *freeargs, **opts) | 1691 return _texthistedit(ui, repo, *freeargs, **opts) |
1692 except KeyboardInterrupt: | 1692 except KeyboardInterrupt: |
1693 pass | 1693 pass |
1694 return -1 | 1694 return -1 |
1695 | 1695 |