Index: remotenames.py =================================================================== --- remotenames.py +++ remotenames.py @@ -1054,6 +1054,12 @@ msg = _('do not specify --to/-t and --branch/-b at the same time') raise error.Abort(msg) + # if we are not using the original push command implementation, make sure + # pushvars is included in opargs + pushvars = opts.get('pushvars') + if pushvars: + opargs['pushvars'] = pushvars + if revs: revs = [repo.lookup(r) for r in scmutil.revrange(repo, revs)] else: