[Python-checkins] hooks: Remove unused import and clean up whitespace.

ezio.melotti python-checkins at python.org
Tue Sep 11 04:28:41 CEST 2012


http://hg.python.org/hooks/rev/72aaeb80a55a
changeset: 83:72aaeb80a55a
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Tue Sep 11 05:28:30 2012 +0300
summary:
 Remove unused import and clean up whitespace.
files:
 checkheads.py | 6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/checkheads.py b/checkheads.py
--- a/checkheads.py
+++ b/checkheads.py
@@ -9,8 +9,6 @@
 pretxnchangegroup.checkheads = python:/home/hg/repos/hooks/checkheads.py:hook
 """
 
-from collections import defaultdict
-
 from mercurial.node import bin, nullrev
 from mercurial import util
 
@@ -24,7 +22,7 @@
 newcsets = range(start, end)
 # The rev numbers of the changegroup parents (not in the changegroup)
 parents = set()
- 
+
 for n in newcsets:
 for p in changelog.parentrevs(n):
 if p == nullrev:
@@ -51,5 +49,3 @@
 ui.warn('* Please run "hg pull" and then merge at least two of:\n')
 ui.warn('* ' + ', '.join(str(repo[h]) for h in pheads) + '\n')
 return True
-
-
-- 
Repository URL: http://hg.python.org/hooks


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /