Show More
@@ -562,8 +562,6 b' def bundle(ui, repo, fname, dest=None, *' | |||
|
562 | 562 | Returns 0 on success, 1 if no changes found. |
|
563 | 563 | """ |
|
564 | 564 | revs = opts.get('rev') or None |
|
565 | if revs: | |
|
566 | revs = [repo.lookup(rev) for rev in revs] | |
|
567 | 565 | if opts.get('all'): |
|
568 | 566 | base = ['null'] |
|
569 | 567 | else: |
@@ -580,8 +578,9 b' def bundle(ui, repo, fname, dest=None, *' | |||
|
580 | 578 | for n in base: |
|
581 | 579 | has.update(repo.changelog.reachable(n)) |
|
582 | 580 | if revs: |
|
583 | visit = list(revs) | |
|
584 | has.difference_update(revs) | |
|
581 | revs = [repo.lookup(rev) for rev in revs] | |
|
582 | visit = revs[:] | |
|
583 | has.difference_update(visit) | |
|
585 | 584 | else: |
|
586 | 585 | visit = repo.changelog.heads() |
|
587 | 586 | seen = {} |
@@ -601,6 +600,8 b' def bundle(ui, repo, fname, dest=None, *' | |||
|
601 | 600 | dest, branches = hg.parseurl(dest, opts.get('branch')) |
|
602 | 601 | other = hg.repository(hg.remoteui(repo, opts), dest) |
|
603 | 602 | revs, checkout = hg.addbranchrevs(repo, other, branches, revs) |
|
603 | if revs: | |
|
604 | revs = [repo.lookup(rev) for rev in revs] | |
|
604 | 605 | o = discovery.findoutgoing(repo, other, force=opts.get('force')) |
|
605 | 606 | |
|
606 | 607 | if not o: |
General Comments 0
You need to be logged in to leave comments.
Login now