Patchwork D6969: discovery: re-wrap expression to avoid a black bug

login
register
mail settings
Submitter phabricator
Date Oct. 5, 2019, 2:19 p.m.
Message ID <af72b0163d175f04df84483ea1cc91cd@localhost.localdomain>
Download mbox | patch
Permalink /patch/41974/
State Not Applicable
Headers show

Comments

phabricator - Oct. 5, 2019, 2:19 p.m.
Closed by commit rHG6e8582ccf76d: discovery: re-wrap expression to avoid a black bug (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6969?vs=16816&id=16822

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

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

AFFECTED FILES
  mercurial/discovery.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/discovery.py b/mercurial/discovery.py
--- a/mercurial/discovery.py
+++ b/mercurial/discovery.py
@@ -394,8 +394,10 @@ 
             if len(newhs) > 1:
                 dhs = list(newhs)
                 if errormsg is None:
-                    errormsg = (_("push creates new branch '%s' "
-                                  "with multiple heads") % (branch))
+                    errormsg = (
+                        _("push creates new branch '%s' with multiple heads") %
+                        branch
+                    )
                     hint = _("merge or"
                              " see 'hg help push' for details about"
                              " pushing new heads")