Show More
@@ -5467,9 +5467,11 b' def summary(ui, repo, **opts):' | |||
|
5467 | 5467 | other = hg.peer(repo, {}, source) |
|
5468 | 5468 | revs, checkout = hg.addbranchrevs(repo, other, branches, |
|
5469 | 5469 | opts.get('rev')) |
|
5470 | if revs: | |
|
5471 | revs = [other.lookup(rev) for rev in revs] | |
|
5470 | 5472 | ui.debug('comparing with %s\n' % util.hidepassword(source)) |
|
5471 | 5473 | repo.ui.pushbuffer() |
|
5472 | commoninc = discovery.findcommonincoming(repo, other) | |
|
5474 | commoninc = discovery.findcommonincoming(repo, other, heads=revs) | |
|
5473 | 5475 | _common, incoming, _rheads = commoninc |
|
5474 | 5476 | repo.ui.popbuffer() |
|
5475 | 5477 | if incoming: |
@@ -100,6 +100,16 b' Changing original repo:' | |||
|
100 | 100 | update: (current) |
|
101 | 101 | remote: 1 outgoing |
|
102 | 102 | |
|
103 | $ hg -q --cwd ../clone incoming '../repo#foo' | |
|
104 | 2:faba9097cad4 | |
|
105 | $ hg --cwd ../clone summary --remote --config paths.default='../repo#foo' | |
|
106 | parent: 1:cd2a86ecc814 tip | |
|
107 | change a | |
|
108 | branch: foo | |
|
109 | commit: (clean) | |
|
110 | update: (current) | |
|
111 | remote: 1 or more incoming | |
|
112 | ||
|
103 | 113 | $ hg -q push '../clone#foo' |
|
104 | 114 | |
|
105 | 115 | $ hg --cwd ../clone heads |
@@ -115,6 +125,16 b' Changing original repo:' | |||
|
115 | 125 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
116 | 126 | summary: add a |
|
117 | 127 | |
|
128 | $ hg -q --cwd ../clone incoming '../repo#foo' | |
|
129 | [1] | |
|
130 | $ hg --cwd ../clone summary --remote --config paths.default='../repo#foo' | |
|
131 | parent: 1:cd2a86ecc814 | |
|
132 | change a | |
|
133 | branch: foo | |
|
134 | commit: (clean) | |
|
135 | update: 1 new changesets (update) | |
|
136 | remote: (synced) | |
|
137 | ||
|
118 | 138 | $ cd .. |
|
119 | 139 | |
|
120 | 140 | $ cd clone |
General Comments 0
You need to be logged in to leave comments.
Login now