##// END OF EJS Templates
tests: fix vcs Hg helper function get_config_value to not modify global state when using a custom config file...
Mads Kiilerich -
r7307:e885a8ef default
parent child Browse files
Show More
@@ -602,8 +602,10 b' class MercurialRepository(BaseRepository'
602 config_file = [config_file]
602 config_file = [config_file]
603
603
604 config = self._repo.ui
604 config = self._repo.ui
605 for path in config_file:
605 if config_file:
606 config.readconfig(path)
606 config = ui.ui()
607 for path in config_file:
608 config.readconfig(path)
607 return config.config(section, name)
609 return config.config(section, name)
608
610
609 def get_user_name(self, config_file=None):
611 def get_user_name(self, config_file=None):
General Comments 0
You need to be logged in to leave comments. Login now