Show More
@@ -525,15 +525,21 b' class localrepository:' | |||
|
525 | 525 | return nl |
|
526 | 526 | |
|
527 | 527 | def getchangegroup(self, remote): |
|
528 | tip = remote.branches([])[0] | |
|
529 | self.ui.debug("remote tip branch is %s:%s\n" % | |
|
530 | (short(tip[0]), short(tip[1]))) | |
|
531 | 528 | m = self.changelog.nodemap |
|
532 | unknown = [tip] | |
|
533 | 529 | search = [] |
|
534 | 530 | fetch = [] |
|
535 | 531 | seen = {} |
|
536 | 532 | seenbranch = {} |
|
533 | tip = remote.branches([])[0] | |
|
534 | self.ui.debug("remote tip branch is %s:%s\n" % | |
|
535 | (short(tip[0]), short(tip[1]))) | |
|
536 | ||
|
537 | # if we have an empty repo, fetch everything | |
|
538 | if self.changelog.tip() == nullid: | |
|
539 | return remote.changegroup([nullid]) | |
|
540 | ||
|
541 | # otherwise, assume we're closer to the tip than the root | |
|
542 | unknown = [tip] | |
|
537 | 543 | |
|
538 | 544 | if tip[0] in m: |
|
539 | 545 | self.ui.note("nothing to do!\n") |
General Comments 0
You need to be logged in to leave comments.
Login now