Mercurial > hg
comparison mercurial/commands.py @ 1286:4f08da74cae8
Make incoming/outgoing show oldest first
author | mpm@selenic.com |
---|---|
date | Thu, 22 Sep 2005 09:22:25 -0700 |
parents | 1546c2aa6b30 |
children | 3b717f27ffea |
comparison
equal
deleted
inserted
replaced
1285:1546c2aa6b30 | 1286:4f08da74cae8 |
---|---|
1187 raise util.Abort("incoming doesn't work for remote repositories yet") | 1187 raise util.Abort("incoming doesn't work for remote repositories yet") |
1188 o = repo.findincoming(other) | 1188 o = repo.findincoming(other) |
1189 if not o: | 1189 if not o: |
1190 return | 1190 return |
1191 o = other.newer(o) | 1191 o = other.newer(o) |
1192 o.reverse() | |
1193 for n in o: | 1192 for n in o: |
1194 show_changeset(ui, other, changenode=n) | 1193 show_changeset(ui, other, changenode=n) |
1195 if opts['patch']: | 1194 if opts['patch']: |
1196 prev = other.changelog.parents(n)[0] | 1195 prev = other.changelog.parents(n)[0] |
1197 dodiff(ui, ui, other, prev, n) | 1196 dodiff(ui, ui, other, prev, n) |
1284 """show changesets not found in destination""" | 1283 """show changesets not found in destination""" |
1285 dest = ui.expandpath(dest) | 1284 dest = ui.expandpath(dest) |
1286 other = hg.repository(ui, dest) | 1285 other = hg.repository(ui, dest) |
1287 o = repo.findoutgoing(other) | 1286 o = repo.findoutgoing(other) |
1288 o = repo.newer(o) | 1287 o = repo.newer(o) |
1289 o.reverse() | |
1290 for n in o: | 1288 for n in o: |
1291 show_changeset(ui, repo, changenode=n) | 1289 show_changeset(ui, repo, changenode=n) |
1292 if opts['patch']: | 1290 if opts['patch']: |
1293 prev = repo.changelog.parents(n)[0] | 1291 prev = repo.changelog.parents(n)[0] |
1294 dodiff(ui, ui, repo, prev, n) | 1292 dodiff(ui, ui, repo, prev, n) |