# HG changeset patch # User mpm@selenic.com # Date 1124236166 28800 # Node ID 270756aa29d5698e5f5877921c361ca73260fe36 # Parent 1458d20df2a8740317681473be23d5f71825fa46 Add hg outgoing command diff -r 1458d20df2a8 -r 270756aa29d5 mercurial/commands.py --- a/mercurial/commands.py Tue Aug 16 15:30:26 2005 -0800 +++ b/mercurial/commands.py Tue Aug 16 15:49:26 2005 -0800 @@ -854,6 +854,16 @@ for f in files: ui.write("%40s %3s %s\n" % (hg.hex(m[f]), mf[f] and "755" or "644", f)) +def outgoing(ui, repo, dest="default-push"): + """show changesets not found in destination""" + dest = ui.expandpath(dest) + other = hg.repository(ui, dest) + o = repo.findoutgoing(other) + o = repo.newer(o) + o.reverse() + for n in o: + show_changeset(ui, repo, changenode=n) + def parents(ui, repo, rev=None): """show the parents of the working dir or revision""" if rev: @@ -1308,6 +1318,7 @@ ('p', 'patch', None, 'show patch')], 'hg log [-r REV1 [-r REV2]] [-p] [FILE]'), "manifest": (manifest, [], 'hg manifest [REV]'), + "outgoing": (outgoing, [], 'hg outgoing [DEST]'), "parents": (parents, [], 'hg parents [REV]'), "paths": (paths, [], 'hg paths [name]'), "^pull":