Patchwork D8230: histedit: fix formatting after D8150

login
register
mail settings
Submitter phabricator
Date March 5, 2020, 4:31 p.m.
Message ID <differential-rev-PHID-DREV-dzj3boxlylfj4lkmzbye-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/45505/
State Superseded
Headers show

Comments

phabricator - March 5, 2020, 4:31 p.m.
martinvonz created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D8230

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS




To: martinvonz, durin42, #hg-reviewers
Cc: mercurial-devel
phabricator - March 5, 2020, 5:54 p.m.
martinvonz added a comment.


  Sorry, I accidentally queued this myself.  OTOH, the patch already was accepted by two people and it seems entirely uncontroversial and it's nice to have tests passing, so I'll leave it queued and will also merge it into the default branch so tests pass there too.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8230/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8230

To: martinvonz, durin42, #hg-reviewers, Alphare, pulkit
Cc: mercurial-devel

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -1860,10 +1860,7 @@ 
     # kludge: _chistedit only works for starting an edit, not aborting
     # or continuing, so fall back to regular _texthistedit for those
     # operations.
-    if (
-        ui.interface(b'histedit') == b'curses'
-        and _getgoal(opts) == goalnew
-    ):
+    if ui.interface(b'histedit') == b'curses' and _getgoal(opts) == goalnew:
         return _chistedit(ui, repo, freeargs, opts)
     return _texthistedit(ui, repo, freeargs, opts)