mercurial/commands.py
changeset 3223 53e843840349
parent 3204 a7377a238cec
child 3250 7c114915fbdb
equal deleted inserted replaced
3222:a5603ad915c5 3223:53e843840349
  2500     I = ignored (not shown by default)
  2500     I = ignored (not shown by default)
  2501       = the previous added file was copied from here
  2501       = the previous added file was copied from here
  2502     """
  2502     """
  2503 
  2503 
  2504     all = opts['all']
  2504     all = opts['all']
  2505     
  2505 
  2506     files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
  2506     files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
  2507     cwd = (pats and repo.getcwd()) or ''
  2507     cwd = (pats and repo.getcwd()) or ''
  2508     modified, added, removed, deleted, unknown, ignored, clean = [
  2508     modified, added, removed, deleted, unknown, ignored, clean = [
  2509         [util.pathto(cwd, x) for x in n]
  2509         [util.pathto(cwd, x) for x in n]
  2510         for n in repo.status(files=files, match=matchfn,
  2510         for n in repo.status(files=files, match=matchfn,
  3234         cmdtable = getattr(mod, 'cmdtable', {})
  3234         cmdtable = getattr(mod, 'cmdtable', {})
  3235         for t in cmdtable:
  3235         for t in cmdtable:
  3236             if t in table:
  3236             if t in table:
  3237                 ui.warn(_("module %s overrides %s\n") % (name, t))
  3237                 ui.warn(_("module %s overrides %s\n") % (name, t))
  3238         table.update(cmdtable)
  3238         table.update(cmdtable)
  3239     
  3239 
  3240 def dispatch(args):
  3240 def dispatch(args):
  3241     for name in 'SIGBREAK', 'SIGHUP', 'SIGTERM':
  3241     for name in 'SIGBREAK', 'SIGHUP', 'SIGTERM':
  3242         num = getattr(signal, name, None)
  3242         num = getattr(signal, name, None)
  3243         if num: signal.signal(num, catchterm)
  3243         if num: signal.signal(num, catchterm)
  3244 
  3244