diff -r 95f658b558a3 -r 5b2391b46906 contrib/phabricator.py --- a/contrib/phabricator.py Tue Jul 04 16:36:48 2017 -0700 +++ b/contrib/phabricator.py Tue Jul 04 16:36:48 2017 -0700 @@ -271,6 +271,9 @@ revs = list(revs) + opts.get('rev', []) revs = scmutil.revrange(repo, revs) + if not revs: + raise error.Abort(_('phabsend requires at least one changeset')) + # Send patches one by one so we know their Differential Revision IDs and # can provide dependency relationship lastrevid = None