hgext/patchbomb.py
changeset 46938 a48f15f1c178
parent 46908 4452cb788404
child 46948 946db89607c8
equal deleted inserted replaced
46937:8e6911426b88 46938:a48f15f1c178
   528 
   528 
   529 
   529 
   530 def _getoutgoing(repo, dest, revs):
   530 def _getoutgoing(repo, dest, revs):
   531     '''Return the revisions present locally but not in dest'''
   531     '''Return the revisions present locally but not in dest'''
   532     ui = repo.ui
   532     ui = repo.ui
   533     url = ui.expandpath(dest or b'default-push', dest or b'default')
   533     paths = urlutil.get_push_paths(repo, ui, [dest])
   534     url = urlutil.parseurl(url)[0]
   534     safe_paths = [urlutil.hidepassword(p.rawloc) for p in paths]
   535     ui.status(_(b'comparing with %s\n') % urlutil.hidepassword(url))
   535     ui.status(_(b'comparing with %s\n') % b','.join(safe_paths))
   536 
   536 
   537     revs = [r for r in revs if r >= 0]
   537     revs = [r for r in revs if r >= 0]
   538     if not revs:
   538     if not revs:
   539         revs = [repo.changelog.tiprev()]
   539         revs = [repo.changelog.tiprev()]
   540     revs = repo.revs(b'outgoing(%s) and ::%ld', dest or b'', revs)
   540     revs = repo.revs(b'outgoing(%s) and ::%ld', dest or b'', revs)