tests/autodiff.py
changeset 32337 46ba2cdda476
parent 27281 3b517f2a3989
child 35581 154754d1f137
equal deleted inserted replaced
32336:ff874d34c856 32337:46ba2cdda476
     1 # Extension dedicated to test patch.diff() upgrade modes
     1 # Extension dedicated to test patch.diff() upgrade modes
     2 
     2 
     3 from __future__ import absolute_import
     3 from __future__ import absolute_import
     4 
     4 
     5 from mercurial import (
     5 from mercurial import (
     6     cmdutil,
       
     7     error,
     6     error,
     8     patch,
     7     patch,
       
     8     registrar,
     9     scmutil,
     9     scmutil,
    10 )
    10 )
    11 
    11 
    12 cmdtable = {}
    12 cmdtable = {}
    13 command = cmdutil.command(cmdtable)
    13 command = registrar.command(cmdtable)
    14 
    14 
    15 @command('autodiff',
    15 @command('autodiff',
    16     [('', 'git', '', 'git upgrade mode (yes/no/auto/warn/abort)')],
    16     [('', 'git', '', 'git upgrade mode (yes/no/auto/warn/abort)')],
    17     '[OPTION]... [FILE]...')
    17     '[OPTION]... [FILE]...')
    18 def autodiff(ui, repo, *pats, **opts):
    18 def autodiff(ui, repo, *pats, **opts):