Permalink
Browse files

push: state when no changes are found

  • Loading branch information...
1 parent 1c0c236 commit ef2e62d3b8fed5b30b2853a194324fafbaceb900 @davidmc24 davidmc24 committed Sep 6, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 hggit/git_handler.py
  2. +1 −0 tests/test-push.out
View
@@ -252,6 +252,7 @@ def push(self, remote, revs, force):
self.update_remote_branches(remote_name, new_refs)
if old_refs == new_refs:
+ self.ui.status(_("no changes found\n"))
ret = None
elif len(new_refs) > len(old_refs):
ret = 1 + (len(new_refs) - len(old_refs))
View
@@ -55,4 +55,5 @@ creating and sending data
% this should fail, no changes to push
pushing to git://localhost/gitrepo
creating and sending data
+no changes found
[1]

0 comments on commit ef2e62d

Please sign in to comment.