Mercurial > hgsubversion
view tests/run.py @ 313:942f198b8ff5
hg_delta_editor: detect new branches issued from non-branch directories
This fix solves the following case: let's /dumb/layout/project be an existing
project. To normalize the trunk/branches/tags layout, people may do:
$ mkdir /project
$ mv /dumb/layout/project /project/project
# Oups, should have been trunk!
$ mv /project/project /project/trunk
trunk creation was ignore because:
- update_branch_map() sees it come from a non-branch copy source and ignores it
(case #3).
- since it is not in self.branches, add_directory() ignores the non-existing path.
Then trunk is left uninitialized.
To solve this, we allow update_branch_map() to detect branches copied from
non-canonical locations.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 03 May 2009 21:42:42 -0500 |
parents | 521d9c1bb11d |
children | ce676eff002b |
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_pull 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 import test_urls 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_pull.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(), test_urls.suite(), ]) if __name__ == '__main__': runner = unittest.TextTestRunner() runner.run(suite())