##// END OF EJS Templates
chgserver: move args copying logic to the correct place...
Jun Wu -
r28767:73bfd9a5 default
parent child Browse files
Show More
@@ -279,6 +279,7 b' def _loadnewui(srcui, args):'
279 srcui.config('extensions', 'chgserver'), '--config')
279 srcui.config('extensions', 'chgserver'), '--config')
280
280
281 # command line args
281 # command line args
282 args = args[:]
282 dispatch._parseconfig(newui, dispatch._earlygetopt(['--config'], args))
283 dispatch._parseconfig(newui, dispatch._earlygetopt(['--config'], args))
283
284
284 # stolen from tortoisehg.util.copydynamicconfig()
285 # stolen from tortoisehg.util.copydynamicconfig()
@@ -293,7 +294,6 b' def _loadnewui(srcui, args):'
293 newui.setconfig(section, name, value, source)
294 newui.setconfig(section, name, value, source)
294
295
295 # load wd and repo config, copied from dispatch.py
296 # load wd and repo config, copied from dispatch.py
296 args = args[:]
297 cwds = dispatch._earlygetopt(['--cwd'], args)
297 cwds = dispatch._earlygetopt(['--cwd'], args)
298 cwd = cwds and os.path.realpath(cwds[-1]) or None
298 cwd = cwds and os.path.realpath(cwds[-1]) or None
299 rpath = dispatch._earlygetopt(["-R", "--repository", "--repo"], args)
299 rpath = dispatch._earlygetopt(["-R", "--repository", "--repo"], args)
General Comments 0
You need to be logged in to leave comments. Login now