[Python-checkins] hooks: Whitelist branches in the branch check
antoine.pitrou
python-checkins at python.org
Sun Feb 27 17:21:30 CET 2011
antoine.pitrou pushed 60f1cc0228bf to hooks:
http://hg.python.org/hooks/rev/60f1cc0228bf
changeset: 31:60f1cc0228bf
tag: tip
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sun Feb 27 17:21:27 2011 +0100
summary:
Whitelist branches in the branch check
files:
checkbranch.py
diff --git a/checkbranch.py b/checkbranch.py
--- a/checkbranch.py
+++ b/checkbranch.py
@@ -22,8 +22,7 @@
n = repo.changelog.node(rev)
ctx = repo[n]
branch = ctx.branch()
- if branch in ('trunk', 'legacy-trunk',
- '2.0', '2.1', '2.2', '2.3', '2.4', '3.0'):
+ if branch not in ('default', '3.2', '3.1', '2.7', '2.6', '2.5'):
ui.warn(' - changeset %s on disallowed branch %r!\n'
% (ctx, branch))
failed = True
--
Repository URL: http://hg.python.org/hooks
More information about the Python-checkins
mailing list