Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 3931:f2cbcf1e98b2
incoming/outgoing: return failure if no changes found
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 19 Dec 2006 08:58:56 -0600 |
parents | 01d98d68d697 |
children | 7997c0e01bfc |
comparison
equal
deleted
inserted
replaced
3930:01d98d68d697 | 3931:f2cbcf1e98b2 |
---|---|
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 ui.status(_("no changes found\n")) | 1534 ui.status(_("no changes found\n")) |
1535 return | 1535 return 1 |
1536 | 1536 |
1537 cleanup = None | 1537 cleanup = None |
1538 try: | 1538 try: |
1539 fname = opts["bundle"] | 1539 fname = opts["bundle"] |
1540 if fname or not other.local(): | 1540 if fname or not other.local(): |
1810 | 1810 |
1811 other = hg.repository(ui, dest) | 1811 other = hg.repository(ui, dest) |
1812 o = repo.findoutgoing(other, force=opts['force']) | 1812 o = repo.findoutgoing(other, force=opts['force']) |
1813 if not o: | 1813 if not o: |
1814 ui.status(_("no changes found\n")) | 1814 ui.status(_("no changes found\n")) |
1815 return | 1815 return 1 |
1816 o = repo.changelog.nodesbetween(o, revs)[0] | 1816 o = repo.changelog.nodesbetween(o, revs)[0] |
1817 if opts['newest_first']: | 1817 if opts['newest_first']: |
1818 o.reverse() | 1818 o.reverse() |
1819 displayer = cmdutil.show_changeset(ui, repo, opts) | 1819 displayer = cmdutil.show_changeset(ui, repo, opts) |
1820 for n in o: | 1820 for n in o: |