diff hgext/phabricator.py @ 44593:2d63a8910db6

phabricator: remove *-argument from _getdrevs() It can't take more than one specs arguments per len(*specs).
author Yuya Nishihara <yuya@tcha.org>
date Sat, 21 Mar 2020 14:01:10 +0900
parents a7f8c657a3f0
children 7b9aaec17126
line wrap: on
line diff
--- a/hgext/phabricator.py	Sat Mar 21 13:42:08 2020 +0900
+++ b/hgext/phabricator.py	Sat Mar 21 14:01:10 2020 +0900
@@ -1632,19 +1632,19 @@
     return meta
 
 
-def _getdrevs(ui, stack, *specs):
+def _getdrevs(ui, stack, specs):
     """convert user supplied DREVSPECs into "Differential Revision" dicts
 
     See ``hg help phabread`` for how to specify each DREVSPEC.
     """
-    if len(*specs) > 0:
+    if len(specs) > 0:
 
         def _formatspec(s):
             if stack:
                 s = b':(%s)' % s
             return b'(%s)' % s
 
-        spec = b'+'.join(pycompat.maplist(_formatspec, *specs))
+        spec = b'+'.join(pycompat.maplist(_formatspec, specs))
 
         drevs = querydrev(ui, spec)
         if drevs: