Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 1457:518da3c3b6ce
This implements the nodesbetween method, and it removes the newer method
and replaces it with calls to nodesbetween.
nodesbetween calculates all the changesets needed to have a complete
revision graph between a given set of base nodes and a given set of
head nodes.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Fri, 07 Oct 2005 10:48:27 -0700 |
parents | c29c36745c6e |
children | 02099220ad49 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Oct 05 19:27:35 2005 -0700 +++ b/mercurial/commands.py Fri Oct 07 10:48:27 2005 -0700 @@ -1193,7 +1193,7 @@ o = repo.findincoming(other) if not o: return - o = other.newer(o) + o = other.changelog.nodesbetween(o)[0] for n in o: show_changeset(ui, other, changenode=n) if opts['patch']: @@ -1305,7 +1305,7 @@ dest = ui.expandpath(dest) other = hg.repository(ui, dest) o = repo.findoutgoing(other) - o = repo.newer(o) + o = repo.changelog.nodesbetween(o)[0] for n in o: show_changeset(ui, repo, changenode=n) if opts['patch']: