Mercurial > hg
comparison contrib/hbisect.py @ 1559:59b3639df0a9
Convert all classes to new-style classes by deriving them from object.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Fri, 18 Nov 2005 22:48:47 -0800 |
parents | a7678cbd7c28 |
children | ff339dd21976 |
comparison
equal
deleted
inserted
replaced
1554:68ec7b9e09a4 | 1559:59b3639df0a9 |
---|---|
24 c, a, d, u = repo.changes() | 24 c, a, d, u = repo.changes() |
25 if c or a or d: | 25 if c or a or d: |
26 ui.warn("Repository is not clean, please commit or revert\n") | 26 ui.warn("Repository is not clean, please commit or revert\n") |
27 sys.exit(1) | 27 sys.exit(1) |
28 | 28 |
29 class bisect: | 29 class bisect(object): |
30 """dichotomic search in the DAG of changesets""" | 30 """dichotomic search in the DAG of changesets""" |
31 def __init__(self, ui, repo): | 31 def __init__(self, ui, repo): |
32 self.repo = repo | 32 self.repo = repo |
33 self.path = os.path.join(repo.join(""), "bisect") | 33 self.path = os.path.join(repo.join(""), "bisect") |
34 self.ui = ui | 34 self.ui = ui |