Patchwork D6534: strip: remove unused excsuffix argument from checklocalchanges()

login
register
mail settings
Submitter phabricator
Date June 17, 2019, 5:59 p.m.
Message ID <differential-rev-PHID-DREV-6z67m6l7gu2mkeka3e2u-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/40554/
State Superseded
Headers show

Comments

phabricator - June 17, 2019, 5:59 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  It was only used by mq, and mq now has its own copy of the function.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/strip.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/strip.py b/hgext/strip.py
--- a/hgext/strip.py
+++ b/hgext/strip.py
@@ -46,19 +46,19 @@ 
             inclsubs.append(s)
     return inclsubs
 
-def checklocalchanges(repo, force=False, excsuffix=''):
+def checklocalchanges(repo, force=False):
     cmdutil.checkunfinished(repo)
     s = repo.status()
     if not force:
         if len(repo[None].parents()) > 1:
             _("outstanding uncommitted merge") #i18 tool detection
-            raise error.Abort(_("outstanding uncommitted merge"+ excsuffix))
+            raise error.Abort(_("outstanding uncommitted merge"))
         if s.modified or s.added or s.removed or s.deleted:
             _("local changes found") # i18n tool detection
-            raise error.Abort(_("local changes found" + excsuffix))
+            raise error.Abort(_("local changes found"))
         if checksubstate(repo):
             _("local changed subrepos found") # i18n tool detection
-            raise error.Abort(_("local changed subrepos found" + excsuffix))
+            raise error.Abort(_("local changed subrepos found"))
     return s
 
 def _findupdatetarget(repo, nodes):