tests/autodiff.py
changeset 23692 f78192115229
parent 21254 51e5c793a9f4
child 26587 56b2bcea2529
equal deleted inserted replaced
23691:e41bcb019633 23692:f78192115229
     8 
     8 
     9 @command('autodiff',
     9 @command('autodiff',
    10     [('', 'git', '', 'git upgrade mode (yes/no/auto/warn/abort)')],
    10     [('', 'git', '', 'git upgrade mode (yes/no/auto/warn/abort)')],
    11     '[OPTION]... [FILE]...')
    11     '[OPTION]... [FILE]...')
    12 def autodiff(ui, repo, *pats, **opts):
    12 def autodiff(ui, repo, *pats, **opts):
    13     diffopts = patch.diffopts(ui, opts)
    13     diffopts = patch.difffeatureopts(ui, opts)
    14     git = opts.get('git', 'no')
    14     git = opts.get('git', 'no')
    15     brokenfiles = set()
    15     brokenfiles = set()
    16     losedatafn = None
    16     losedatafn = None
    17     if git in ('yes', 'no'):
    17     if git in ('yes', 'no'):
    18         diffopts.git = git == 'yes'
    18         diffopts.git = git == 'yes'