equal
deleted
inserted
replaced
1502 qbase, destrev = None, None |
1502 qbase, destrev = None, None |
1503 if sr.local(): |
1503 if sr.local(): |
1504 if sr.mq.applied: |
1504 if sr.mq.applied: |
1505 qbase = revlog.bin(sr.mq.applied[0].rev) |
1505 qbase = revlog.bin(sr.mq.applied[0].rev) |
1506 if not hg.islocal(dest): |
1506 if not hg.islocal(dest): |
1507 destrev = sr.parents(qbase)[0] |
1507 heads = dict.fromkeys(sr.heads()) |
|
1508 for h in sr.heads(qbase): |
|
1509 del heads[h] |
|
1510 destrev = heads.keys() |
|
1511 destrev.append(sr.changelog.parents(qbase)[0]) |
1508 ui.note(_('cloning main repo\n')) |
1512 ui.note(_('cloning main repo\n')) |
1509 sr, dr = hg.clone(ui, sr, dest, |
1513 sr, dr = hg.clone(ui, sr, dest, |
1510 pull=opts['pull'], |
1514 pull=opts['pull'], |
1511 rev=destrev, |
1515 rev=destrev, |
1512 update=False, |
1516 update=False, |