mercurial/dispatch.py
changeset 52426 22129ce9f86d
parent 52424 e3b45916c375
child 52640 24ee91ba9aa8
equal deleted inserted replaced
52425:3e79ca017157 52426:22129ce9f86d
   952     if not path:
   952     if not path:
   953         lui = ui
   953         lui = ui
   954     else:
   954     else:
   955         lui = ui.copy()
   955         lui = ui.copy()
   956         if rcutil.use_repo_hgrc():
   956         if rcutil.use_repo_hgrc():
   957             for c_type, rc_path in rcutil.repo_components(path):
   957             for __, c_type, rc_path in rcutil.repo_components(path):
   958                 assert c_type == b'path'
   958                 assert c_type == b'path'
   959                 lui.readconfig(rc_path, root=path)
   959                 lui.readconfig(rc_path, root=path)
   960 
   960 
   961     if rpath:
   961     if rpath:
   962         # the specified path, might be defined in the [paths] section of the
   962         # the specified path, might be defined in the [paths] section of the
   964         # get overriden here.
   964         # get overriden here.
   965         path_obj = urlutil.get_clone_path_obj(lui, rpath)
   965         path_obj = urlutil.get_clone_path_obj(lui, rpath)
   966         path = path_obj.rawloc
   966         path = path_obj.rawloc
   967         lui = ui.copy()
   967         lui = ui.copy()
   968         if rcutil.use_repo_hgrc():
   968         if rcutil.use_repo_hgrc():
   969             for c_type, rc_path in rcutil.repo_components(path):
   969             for __, c_type, rc_path in rcutil.repo_components(path):
   970                 assert c_type == b'path'
   970                 assert c_type == b'path'
   971                 lui.readconfig(rc_path, root=path)
   971                 lui.readconfig(rc_path, root=path)
   972 
   972 
   973     if oldcwd:
   973     if oldcwd:
   974         os.chdir(oldcwd)
   974         os.chdir(oldcwd)