mercurial/commands.py
changeset 6234 a47462264906
parent 6220 1939e29151ca
child 6243 437eef39458d
equal deleted inserted replaced
6233:14a4fdf9037f 6234:a47462264906
  1952     and $HOME/.hgrc.  If run inside a repository, .hg/hgrc is used, too.
  1952     and $HOME/.hgrc.  If run inside a repository, .hg/hgrc is used, too.
  1953     """
  1953     """
  1954     if search:
  1954     if search:
  1955         for name, path in ui.configitems("paths"):
  1955         for name, path in ui.configitems("paths"):
  1956             if name == search:
  1956             if name == search:
  1957                 ui.write("%s\n" % path)
  1957                 ui.write("%s\n" % util.hidepassword(path))
  1958                 return
  1958                 return
  1959         ui.warn(_("not found!\n"))
  1959         ui.warn(_("not found!\n"))
  1960         return 1
  1960         return 1
  1961     else:
  1961     else:
  1962         for name, path in ui.configitems("paths"):
  1962         for name, path in ui.configitems("paths"):
  1963             ui.write("%s = %s\n" % (name, path))
  1963             ui.write("%s = %s\n" % (name, util.hidepassword(path)))
  1964 
  1964 
  1965 def postincoming(ui, repo, modheads, optupdate, checkout):
  1965 def postincoming(ui, repo, modheads, optupdate, checkout):
  1966     if modheads == 0:
  1966     if modheads == 0:
  1967         return
  1967         return
  1968     if optupdate:
  1968     if optupdate: