mercurial/commands.py
changeset 10617 da7662ea741f
parent 10611 e764f24a45ee
parent 10616 65b178f30eae
child 10629 d3f27d15c9cb
--- a/mercurial/commands.py	Tue Mar 09 19:04:18 2010 +0100
+++ b/mercurial/commands.py	Tue Mar 09 20:47:35 2010 +0100
@@ -564,6 +564,10 @@
         revs, checkout = hg.addbranchrevs(repo, other, branches, revs)
         o = repo.findoutgoing(other, force=opts.get('force'))
 
+    if not o:
+        ui.status(_("no changes found\n"))
+        return
+
     if revs:
         cg = repo.changegroupsubset(o, revs, 'bundle')
     else: