# HG changeset patch # User Yuya Nishihara # Date 1451113948 -32400 # Node ID cb0cfa9fd3406d6f8d9cc41ec4893903e7522129 # Parent 723413ee000eb2ea4d73147f179e02d881aa1391 push: specify default-push and default as fallback paths The next patch will remove the "default-push" hack from ui.paths so that ui.paths["default"].pushurl can be different from "default-push". diff -r 723413ee000e -r cb0cfa9fd340 mercurial/commands.py --- a/mercurial/commands.py Sat Dec 26 16:10:39 2015 +0900 +++ b/mercurial/commands.py Sat Dec 26 16:12:28 2015 +0900 @@ -5663,7 +5663,7 @@ # this lets simultaneous -r, -b options continue working opts.setdefault('rev', []).append("null") - path = ui.paths.getpath(dest, default='default') + path = ui.paths.getpath(dest, default=('default-push', 'default')) if not path: raise error.Abort(_('default repository not configured!'), hint=_('see the "path" section in "hg help config"'))