push: state when no changes are found
author |
David M. Carr <david@carrclan.us> |
date |
Wed, 05 Sep 2012 23:27:31 -0400 |
parents |
4793c3725abe |
children |
ac644c0e16d4 bff92a208c3f |
files |
hggit/git_handler.py tests/test-push.out |
diffstat |
2 files changed, 2 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -252,6 +252,7 @@
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))
--- a/tests/test-push.out
+++ b/tests/test-push.out
@@ -55,4 +55,5 @@
% this should fail, no changes to push
pushing to git://localhost/gitrepo
creating and sending data
+no changes found
[1]