3r1co / hg4j

Automatically exported from code.google.com/p/hg4j
GNU General Public License v2.0
0 stars 1 forks source link

Incorrect set of outgoing changes when revision spins off prior to common revision of local and remote repos #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Imagine both local and remote repositories are identical (newest at the top)
o    r3
|
o    r2
|
o    r1

and we add a new revision (r4) with older parent (r1):
o
|
o  o  r4
| /
o

RepositoryComparator.getCommon() tells us r3 is common revision known both 
remotely and locally. #getLocalOnlyRevisions() expects changes to be children 
of common revisions, and doesn't yield any revision with the sample above (r4 
is not a child of r3, indeed).

Original issue reported on code.google.com by tikhomir...@gmail.com on 2 Jul 2013 at 6:47

GoogleCodeExporter commented 8 years ago
Test: TestOutgoing.testOutgoingPreceedsCommon

Original comment by tikhomir...@gmail.com on 3 Jul 2013 at 12:37