Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 3933:7997c0e01bfc
hg in: if no incoming csets, remove existing bundle
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 19 Dec 2006 16:37:45 -0600 |
parents | f2cbcf1e98b2 |
children | 3d3007064a17 |
comparison
equal
deleted
inserted
replaced
3932:e0793314360e | 3933:7997c0e01bfc |
---|---|
1529 setremoteconfig(ui, opts) | 1529 setremoteconfig(ui, opts) |
1530 | 1530 |
1531 other = hg.repository(ui, source) | 1531 other = hg.repository(ui, source) |
1532 incoming = repo.findincoming(other, force=opts["force"]) | 1532 incoming = repo.findincoming(other, force=opts["force"]) |
1533 if not incoming: | 1533 if not incoming: |
1534 try: | |
1535 os.unlink(opts["bundle"]) | |
1536 except: | |
1537 pass | |
1534 ui.status(_("no changes found\n")) | 1538 ui.status(_("no changes found\n")) |
1535 return 1 | 1539 return 1 |
1536 | 1540 |
1537 cleanup = None | 1541 cleanup = None |
1538 try: | 1542 try: |