--- a/hgext/mozext/__init__.py
+++ b/hgext/mozext/__init__.py
@@ -338,20 +338,19 @@ try:
TREE_ALIASES,
)
finally:
if demandenabled:
demandimport.enable()
bz_available = False
-testedwith = '3.1 3.2 3.3 3.4 3.5 3.6'
+testedwith = '3.4 3.5 3.6 3.7'
buglink = 'https://bugzilla.mozilla.org/enter_bug.cgi?product=Developer%20Services&component=Mercurial%3A%20mozext'
-commands.norepo += ' cloneunified moztrees treestatus'
cmdtable = {}
command = cmdutil.command(cmdtable)
colortable = {
'buildstatus.success': 'green',
'buildstatus.failed': 'red',
'buildstatus.testfailed': 'cyan',
}
@@ -473,17 +472,17 @@ def critique(ui, repo, entire=False, nod
deleted = repo.status(ctx.p1().node(), ctx.node())[2]
files = [f for f in ctx.files() if f.endswith('.py') and f not in deleted]
style.check_files(files)
demandimport.enable()
-@command('moztrees', [], _('hg moztrees'))
+@command('moztrees', [], _('hg moztrees'), norepo=True)
def moztrees(ui, **opts):
"""Show information about Mozilla source trees."""
longest = max(len(tree) for tree in REPOS.keys())
ui.write('%s %s\n' % (_('Repo').rjust(longest), _('Aliases')))
for name in sorted(REPOS):
aliases = []
for alias, targets in TREE_ALIASES.items():
@@ -492,17 +491,17 @@ def moztrees(ui, **opts):
if targets[0] == name:
aliases.append(alias)
ui.write('%s: %s\n' % (name.rjust(longest),
', '.join(sorted(aliases))))
-@command('cloneunified', [], _('hg cloneunified [DEST]'))
+@command('cloneunified', [], _('hg cloneunified [DEST]'), norepo=True)
def cloneunified(ui, dest='gecko', **opts):
"""Clone main Mozilla repositories into a unified local repository.
This command will clone the most common Mozilla repositories and will
add changesets and remote tracking markers into a common repository.
If the destination path is not given, 'gecko' will be used.
@@ -524,17 +523,17 @@ def cloneunified(ui, dest='gecko', **opt
res = hg.update(repo, repo.lookup('central/default'))
success = True
return res
finally:
if not success:
shutil.rmtree(path)
-@command('treestatus', [], _('hg treestatus [TREE] ...'))
+@command('treestatus', [], _('hg treestatus [TREE] ...'), norepo=True)
def treestatus(ui, *trees, **opts):
"""Show the status of the Mozilla repositories.
If trees are open, it is OK to land code on them.
If trees require approval, you'll need to obtain approval from
release management to land changes.