equal
deleted
inserted
replaced
1423 def _outgoing(ui, repo, dests, opts, subpath=None): |
1423 def _outgoing(ui, repo, dests, opts, subpath=None): |
1424 out = set() |
1424 out = set() |
1425 others = [] |
1425 others = [] |
1426 for path in urlutil.get_push_paths(repo, ui, dests): |
1426 for path in urlutil.get_push_paths(repo, ui, dests): |
1427 dest = path.loc |
1427 dest = path.loc |
1428 repo._subtoppath = dest |
|
1429 if subpath is not None: |
1428 if subpath is not None: |
1430 subpath = urlutil.url(subpath) |
1429 subpath = urlutil.url(subpath) |
1431 if subpath.isabs(): |
1430 if subpath.isabs(): |
1432 dest = bytes(subpath) |
1431 dest = bytes(subpath) |
1433 else: |
1432 else: |
1527 ret = min(ret, _outgoing_recurse(ui, repo, dests, opts)) |
1526 ret = min(ret, _outgoing_recurse(ui, repo, dests, opts)) |
1528 return ret # exit code is zero since we found outgoing changes |
1527 return ret # exit code is zero since we found outgoing changes |
1529 finally: |
1528 finally: |
1530 for oth in others: |
1529 for oth in others: |
1531 oth.close() |
1530 oth.close() |
1532 del repo._subtoppath |
|
1533 |
1531 |
1534 |
1532 |
1535 def verify(repo, level=None): |
1533 def verify(repo, level=None): |
1536 """verify the consistency of a repository""" |
1534 """verify the consistency of a repository""" |
1537 ret = verifymod.verify(repo, level=level) |
1535 ret = verifymod.verify(repo, level=level) |