##// END OF EJS Templates
setdiscovery: return anyincoming=False when remote's only head is nullid...
Andrew Pritchard -
r14981:192e0268 stable
parent child Browse files
Show More
@@ -190,4 +190,5 b' def findcommonheads(ui, local, remote,'
190 ui.warn(_("warning: repository is unrelated\n"))
190 ui.warn(_("warning: repository is unrelated\n"))
191 return (set([nullid]), True, srvheadhashes,)
191 return (set([nullid]), True, srvheadhashes,)
192
192
193 return (dag.externalizeall(result), True, srvheadhashes,)
193 anyincoming = (srvheadhashes != [nullid])
194 return dag.externalizeall(result), anyincoming, srvheadhashes
@@ -465,3 +465,16 b' limit to 3 changesets'
465 date: Thu Jan 01 00:00:00 1970 +0000
465 date: Thu Jan 01 00:00:00 1970 +0000
466 summary: 11
466 summary: 11
467
467
468
469 incoming from empty remote repository
470
471 $ hg init r1
472 $ hg init r2
473 $ echo a > r1/foo
474 $ hg -R r1 ci -Ama
475 adding foo
476 $ hg -R r1 incoming r2 --bundle x.hg
477 comparing with r2
478 searching for changes
479 no changes found
480 [1]
General Comments 0
You need to be logged in to leave comments. Login now