--- a/mercurial/localrepo.py Wed Feb 13 18:37:38 2008 -0200
+++ b/mercurial/localrepo.py Fri Feb 15 15:44:32 2008 -0200
@@ -1433,7 +1433,7 @@
self.ui.warn(_("abort: push creates new remote branches!\n"))
self.ui.status(_("(did you forget to merge?"
" use push -f to force)\n"))
- return None, 1
+ return None, 0
elif inc:
self.ui.warn(_("note: unsynced remote changes!\n"))
--- a/tests/test-push-warn.out Wed Feb 13 18:37:38 2008 -0200
+++ b/tests/test-push-warn.out Fri Feb 15 15:44:32 2008 -0200
@@ -33,7 +33,7 @@
searching for changes
abort: push creates new remote branches!
(did you forget to merge? use push -f to force)
-0
+1
pushing to ../c
searching for changes
no changes found
@@ -42,12 +42,12 @@
searching for changes
abort: push creates new remote branches!
(did you forget to merge? use push -f to force)
-0
+1
pushing to ../c
searching for changes
abort: push creates new remote branches!
(did you forget to merge? use push -f to force)
-0
+1
pushing to ../c
searching for changes
adding changesets