Mercurial > hg
changeset 28767:73bfd9a54a5c
chgserver: move args copying logic to the correct place
A previous patch moved it to an incorrect place. Since dispatch._earlygetopt
has side effects on args, we need to move it to the place before _earlygetopt.
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 04 Apr 2016 01:10:51 +0100 |
parents | 7f7cd44cd6d5 |
children | 2461f33c9f97 |
files | hgext/chgserver.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/chgserver.py Mon Apr 04 05:20:40 2016 +0300 +++ b/hgext/chgserver.py Mon Apr 04 01:10:51 2016 +0100 @@ -279,6 +279,7 @@ srcui.config('extensions', 'chgserver'), '--config') # command line args + args = args[:] dispatch._parseconfig(newui, dispatch._earlygetopt(['--config'], args)) # stolen from tortoisehg.util.copydynamicconfig() @@ -293,7 +294,6 @@ newui.setconfig(section, name, value, source) # load wd and repo config, copied from dispatch.py - args = args[:] cwds = dispatch._earlygetopt(['--cwd'], args) cwd = cwds and os.path.realpath(cwds[-1]) or None rpath = dispatch._earlygetopt(["-R", "--repository", "--repo"], args)