Mercurial > hg
comparison tests/fakemergerecord.py @ 32337:46ba2cdda476
registrar: move cmdutil.command to registrar module (API)
cmdutil.command wasn't a member of the registrar framework only for a
historical reason. Let's make that happen. This patch keeps cmdutil.command
as an alias for extension compatibility.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 09 Jan 2016 23:07:20 +0900 |
parents | b303b3817d0e |
children | 8173eeb69fb3 |
comparison
equal
deleted
inserted
replaced
32336:ff874d34c856 | 32337:46ba2cdda476 |
---|---|
3 # | 3 # |
4 | 4 |
5 from __future__ import absolute_import | 5 from __future__ import absolute_import |
6 | 6 |
7 from mercurial import ( | 7 from mercurial import ( |
8 cmdutil, | |
9 merge, | 8 merge, |
9 registrar, | |
10 ) | 10 ) |
11 | 11 |
12 cmdtable = {} | 12 cmdtable = {} |
13 command = cmdutil.command(cmdtable) | 13 command = registrar.command(cmdtable) |
14 | 14 |
15 @command('fakemergerecord', | 15 @command('fakemergerecord', |
16 [('X', 'mandatory', None, 'add a fake mandatory record'), | 16 [('X', 'mandatory', None, 'add a fake mandatory record'), |
17 ('x', 'advisory', None, 'add a fake advisory record')], '') | 17 ('x', 'advisory', None, 'add a fake advisory record')], '') |
18 def fakemergerecord(ui, repo, *pats, **opts): | 18 def fakemergerecord(ui, repo, *pats, **opts): |