diff mercurial/commands.py @ 3944:eb8ae9bfd5e2

Merge with mpm
author Brendan Cully <brendan@kublai.com>
date Wed, 20 Dec 2006 12:07:02 -0800
parents 7997c0e01bfc
children 3d3007064a17
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1531,6 +1531,10 @@ def incoming(ui, repo, source="default",
     other = hg.repository(ui, source)
     incoming = repo.findincoming(other, force=opts["force"])
     if not incoming:
+        try:
+            os.unlink(opts["bundle"])
+        except:
+            pass
         ui.status(_("no changes found\n"))
         return 1