equal
deleted
inserted
replaced
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): |