Commits

David Carr committed ccd521a

push: state when no changes are found

Comments (0)

Files changed (2)

hggit/git_handler.py

 
             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))

tests/test-push.out

 % this should fail, no changes to push
 pushing to git://localhost/gitrepo
 creating and sending data
+no changes found
 [1]