Comments
Patch
@@ -4722,7 +4722,14 @@
dest, branches = hg.parseurl(dest, opts.get('branch'))
ui.status(_('pushing to %s\n') % util.hidepassword(dest))
revs, checkout = hg.addbranchrevs(repo, repo, branches,
opts.get('rev'))
- other = hg.peer(repo, opts, dest)
+ if dest == "default-push":
+ try:
+ other = hg.peer(repo, opts, dest)
+ except error.RepoError:
+ raise util.Abort(_("repository default-push not found!"),
+ hint=_("see the \"path\" section in \"hg help
config\""))
+ else:
+ other = hg.peer(repo, opts, dest)
if revs: