Mercurial > hgsubversion
view tests/run.py @ 296:9be04de434ed
Get rid of .hg/svn/last_rev:
We now calculate the last known revision by iterating over all known
revisions and finding the highest number. Theoretically, we might be
able to simply read the latest entry, but in practice, that's a bug
waiting to happen. For instance, we might want to achieve
compatibility with '.hg/shamap' as generated by the
ConvertExtension, and it not only cannot offer a guarantee of
linearity, but it also allows more than one conversion to source exists.
I'd say we have other problems to care about until this turns up as a
hotspot in profiling. Such as why we leak circa 100MB of memory per
1000 revisions converted ;)
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Fri, 27 Mar 2009 01:09:36 +0100 |
parents | f80132c5fea5 |
children | 2969a20e0eef f423a8780832 |
line wrap: on
line source
import os import sys import unittest sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import test_binaryfiles import test_diff import test_externals import test_fetch_branches import test_fetch_command import test_fetch_command_regexes import test_fetch_exec import test_fetch_mappings import test_fetch_renames import test_fetch_symlinks import test_fetch_truncated import test_push_command import test_push_renames import test_push_dirs import test_push_eol import test_rebuildmeta import test_tags import test_utility_commands def suite(): return unittest.TestSuite([test_binaryfiles.suite(), test_diff.suite(), test_externals.suite(), test_fetch_branches.suite(), test_fetch_command.suite(), test_fetch_command_regexes.suite(), test_fetch_exec.suite(), test_fetch_mappings.suite(), test_fetch_renames.suite(), test_fetch_symlinks.suite(), test_fetch_truncated.suite(), test_push_command.suite(), test_push_renames.suite(), test_push_dirs.suite(), test_push_eol.suite(), test_rebuildmeta.suite(), test_tags.suite(), test_utility_commands.suite(), ]) if __name__ == '__main__': runner = unittest.TextTestRunner() runner.run(suite())