equal
deleted
inserted
replaced
250 # run post-hook, passing command result |
250 # run post-hook, passing command result |
251 hook.hook(lui, repo, "post-%s" % cmd, False, args=" ".join(fullargs), |
251 hook.hook(lui, repo, "post-%s" % cmd, False, args=" ".join(fullargs), |
252 result = ret) |
252 result = ret) |
253 return ret |
253 return ret |
254 |
254 |
255 _loaded = {} |
255 _loaded = set() |
256 def _dispatch(ui, args): |
256 def _dispatch(ui, args): |
257 # read --config before doing anything else |
257 # read --config before doing anything else |
258 # (e.g. to change trust settings for reading .hg/hgrc) |
258 # (e.g. to change trust settings for reading .hg/hgrc) |
259 _parseconfig(ui, _earlygetopt(['--config'], args)) |
259 _parseconfig(ui, _earlygetopt(['--config'], args)) |
260 |
260 |
298 overrides = [cmd for cmd in cmdtable if cmd in commands.table] |
298 overrides = [cmd for cmd in cmdtable if cmd in commands.table] |
299 if overrides: |
299 if overrides: |
300 ui.warn(_("extension '%s' overrides commands: %s\n") |
300 ui.warn(_("extension '%s' overrides commands: %s\n") |
301 % (name, " ".join(overrides))) |
301 % (name, " ".join(overrides))) |
302 commands.table.update(cmdtable) |
302 commands.table.update(cmdtable) |
303 _loaded[name] = 1 |
303 _loaded.add(name) |
304 # check for fallback encoding |
304 # check for fallback encoding |
305 fallback = lui.config('ui', 'fallbackencoding') |
305 fallback = lui.config('ui', 'fallbackencoding') |
306 if fallback: |
306 if fallback: |
307 encoding.fallbackencoding = fallback |
307 encoding.fallbackencoding = fallback |
308 |
308 |