gpg: drop unnecessary slicing of status array
authorMartin von Zweigbergk <martinvonz@gmail.com>
Wed, 24 Sep 2014 12:57:39 -0700
changeset 22681 80b6919eb199
parent 22680 8c65cc0f3c6b
child 22682 9c89ac99690e
gpg: drop unnecessary slicing of status array The call to repo.status() does not request status for clean files, so there is no reason to slice it out from the result. Leaving the tuple untouched will simplify a future change.
hgext/gpg.py
--- a/hgext/gpg.py	Thu Oct 02 18:39:57 2014 -0500
+++ b/hgext/gpg.py	Wed Sep 24 12:57:39 2014 -0700
@@ -254,7 +254,7 @@
         return
 
     msigs = match.exact(repo.root, '', ['.hgsigs'])
-    s = repo.status(match=msigs, unknown=True, ignored=True)[:6]
+    s = repo.status(match=msigs, unknown=True, ignored=True)
     if util.any(s) and not opts["force"]:
         raise util.Abort(_("working copy of .hgsigs is changed "
                            "(please commit .hgsigs manually "