diff hgext/gpg.py @ 22681:80b6919eb199

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.
author Martin von Zweigbergk <martinvonz@gmail.com>
date Wed, 24 Sep 2014 12:57:39 -0700
parents 135176a198d0
children 9c89ac99690e
line wrap: on
line diff
--- 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 "