Mercurial > hgsubversion
view tests/test_binaryfiles.py @ 1088:31917a6be09c
stupid: only check branch mappings for discovered files once
For whatever reason, we were processing the list of discovered files
for new branches every time we discovered a new file. This pulls the
process-discovered-files loop out of the discover-files loop, and
should reduce the running time from
O(num_paths_discovered * num_files_discovered) to
O(num_paths_discovered + num_files_discovered)
author | David Schleimer <dschleimer@fb.com> |
---|---|
date | Wed, 04 Sep 2013 11:47:57 -0700 |
parents | da2c835cd6b8 |
children |
line wrap: on
line source
import test_util import unittest class TestFetchBinaryFiles(test_util.TestBase): stupid_mode_tests = True def test_binaryfiles(self): repo = self._load_fixture_and_fetch('binaryfiles.svndump') self.assertEqual('cce7fe400d8d', str(repo['tip']))