Mercurial > hgsubversion
comparison utility_commands.py @ 95:10dd34deac3b
utility_commands: fix outgoing against crew (required because of crew cset 87158be081b8)
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 19 Nov 2008 10:23:48 -0600 |
parents | 08be8ee73551 |
children | 1da7aafdd323 |
comparison
equal
deleted
inserted
replaced
94:b5651f53e7ae | 95:10dd34deac3b |
---|---|
1 from mercurial import context | |
1 from mercurial import cmdutil | 2 from mercurial import cmdutil |
2 from mercurial import node | 3 from mercurial import node |
3 from mercurial import util as mutil | 4 from mercurial import util as mutil |
4 from hgext import rebase | 5 from hgext import rebase |
5 | 6 |
125 o_r = outgoing_revisions(ui, repo, hge, svn_commit_hashes) | 126 o_r = outgoing_revisions(ui, repo, hge, svn_commit_hashes) |
126 if not (o_r and len(o_r)): | 127 if not (o_r and len(o_r)): |
127 ui.status('No outgoing changes found.\n') | 128 ui.status('No outgoing changes found.\n') |
128 return 0 | 129 return 0 |
129 displayer = cmdutil.show_changeset(ui, repo, opts, buffered=False) | 130 displayer = cmdutil.show_changeset(ui, repo, opts, buffered=False) |
130 for rev in reversed(o_r): | 131 for node in reversed(o_r): |
131 displayer.show(changenode=rev) | 132 displayer.show(repo[node]) |
132 | 133 |
133 | 134 |
134 def outgoing_revisions(ui, repo, hg_editor, reverse_map): | 135 def outgoing_revisions(ui, repo, hg_editor, reverse_map): |
135 """Given a repo and an hg_editor, determines outgoing revisions for the | 136 """Given a repo and an hg_editor, determines outgoing revisions for the |
136 current working copy state. | 137 current working copy state. |