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