##// END OF EJS Templates
outgoing: use `get_push_paths` in the revset too...
marmoute -
r47695:9519312e default
parent child Browse files
Show More
@@ -1855,15 +1855,13 b' def outgoing(repo, subset, x):'
1855 1855 dest = (
1856 1856 l and getstring(l[0], _(b"outgoing requires a repository path")) or b''
1857 1857 )
1858 if not dest:
1858 if dest:
1859 1859 # ui.getpath() explicitly tests for None, not just a boolean
1860 dest = None
1861 path = repo.ui.getpath(dest, default=(b'default-push', b'default'))
1862 if not path:
1863 raise error.Abort(
1864 _(b'default repository not configured!'),
1865 hint=_(b"see 'hg help config.paths'"),
1866 )
1860 dests = [dest]
1861 else:
1862 dests = []
1863 missing = set()
1864 for path in urlutil.get_push_paths(repo, repo.ui, dests):
1867 1865 dest = path.pushloc or path.loc
1868 1866 branches = path.branch, []
1869 1867
@@ -1877,8 +1875,9 b' def outgoing(repo, subset, x):'
1877 1875 repo.ui.popbuffer()
1878 1876 finally:
1879 1877 other.close()
1878 missing.update(outgoing.missing)
1880 1879 cl = repo.changelog
1881 o = {cl.rev(r) for r in outgoing.missing}
1880 o = {cl.rev(r) for r in missing}
1882 1881 return subset & o
1883 1882
1884 1883
General Comments 0
You need to be logged in to leave comments. Login now