Mercurial > hg
comparison mercurial/commands.py @ 43192:ce20b870041f
format: format commands.py, which recently regressed
# skip-blame just reformatting
Differential Revision: https://phab.mercurial-scm.org/D7064
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 11 Oct 2019 18:56:59 -0700 |
parents | 5617b748aad8 |
children | 8d02e3c86815 |
comparison
equal
deleted
inserted
replaced
43191:5ed1abd0ea26 | 43192:ce20b870041f |
---|---|
5614 if not revs: | 5614 if not revs: |
5615 raise error.Abort( | 5615 raise error.Abort( |
5616 _(b'default push revset for path evaluates to an empty set') | 5616 _(b'default push revset for path evaluates to an empty set') |
5617 ) | 5617 ) |
5618 elif ui.configbool(b'commands', b'push.require-revs'): | 5618 elif ui.configbool(b'commands', b'push.require-revs'): |
5619 raise error.Abort(_(b'no revisions specified to push'), | 5619 raise error.Abort( |
5620 hint=_(b'did you mean "hg push -r ."?')) | 5620 _(b'no revisions specified to push'), |
5621 hint=_(b'did you mean "hg push -r ."?'), | |
5622 ) | |
5621 | 5623 |
5622 repo._subtoppath = dest | 5624 repo._subtoppath = dest |
5623 try: | 5625 try: |
5624 # push subrepos depth-first for coherent ordering | 5626 # push subrepos depth-first for coherent ordering |
5625 c = repo[b'.'] | 5627 c = repo[b'.'] |