--- a/tests/test-default-push.t Mon Feb 24 22:42:14 2014 +0100
+++ b/tests/test-default-push.t Tue Feb 25 04:11:11 2014 +0530
@@ -15,6 +15,16 @@
$ echo b >> b/a
$ hg --cwd b ci -mb
+Push should provide a hint when both 'default' and 'default-push' not set:
+ $ cd c
+ $ hg push --config paths.default=
+ pushing to default-push
+ abort: default repository not configured!
+ (see the "path" section in "hg help config")
+ [255]
+
+ $ cd ..
+
Push should push to 'default' when 'default-push' not set:
$ hg --cwd b push