Mercurial > hg
comparison hgext/histedit.py @ 44429:24a3a9f7ea77 stable
histedit: fix formatting after D8150
Differential Revision: https://phab.mercurial-scm.org/D8230
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 05 Mar 2020 08:30:11 -0800 |
parents | 9b8e13a038db |
children | 8cdd0b9629e3 8fca7e8449a8 |
comparison
equal
deleted
inserted
replaced
44428:927137fc3035 | 44429:24a3a9f7ea77 |
---|---|
1858 opts = pycompat.byteskwargs(opts) | 1858 opts = pycompat.byteskwargs(opts) |
1859 | 1859 |
1860 # kludge: _chistedit only works for starting an edit, not aborting | 1860 # kludge: _chistedit only works for starting an edit, not aborting |
1861 # or continuing, so fall back to regular _texthistedit for those | 1861 # or continuing, so fall back to regular _texthistedit for those |
1862 # operations. | 1862 # operations. |
1863 if ( | 1863 if ui.interface(b'histedit') == b'curses' and _getgoal(opts) == goalnew: |
1864 ui.interface(b'histedit') == b'curses' | |
1865 and _getgoal(opts) == goalnew | |
1866 ): | |
1867 return _chistedit(ui, repo, freeargs, opts) | 1864 return _chistedit(ui, repo, freeargs, opts) |
1868 return _texthistedit(ui, repo, freeargs, opts) | 1865 return _texthistedit(ui, repo, freeargs, opts) |
1869 | 1866 |
1870 | 1867 |
1871 def _texthistedit(ui, repo, freeargs, opts): | 1868 def _texthistedit(ui, repo, freeargs, opts): |