comparison tests/test_fetch_renames.py @ 944:d6db289f1548

pull: add hgsubversion.filestoresize to control memory consumption The configuration entry defines the size of the replay or stupid edited file store, that is the maximum amount of edited files data in megabytes which can be kept in memory before falling back to storing it in a temporary directory. Default to 200 (megabytes), use -1 to disable.
author Patrick Mezard <patrick@mezard.eu>
date Fri, 28 Sep 2012 21:43:50 +0200
parents 312b37bc5e20
children d741f536f23a
comparison
equal deleted inserted replaced
943:c49c3c418f9d 944:d6db289f1548
12 for f in ctx: 12 for f in ctx:
13 fctx = ctx[f] 13 fctx = ctx[f]
14 w('%s: %r %r\n' % (f, fctx.data(), fctx.renamed())) 14 w('%s: %r %r\n' % (f, fctx.data(), fctx.renamed()))
15 15
16 def _test_rename(self, stupid): 16 def _test_rename(self, stupid):
17 repo = self._load_fixture_and_fetch('renames.svndump', stupid=stupid) 17 config = {
18 # self._debug_print_copies(repo) 18 'hgsubversion.filestoresize': '0',
19 }
20 repo = self._load_fixture_and_fetch('renames.svndump', stupid=stupid,
21 config=config)
19 22
20 # Map revnum to mappings of dest name to (source name, dest content) 23 # Map revnum to mappings of dest name to (source name, dest content)
21 copies = { 24 copies = {
22 4: { 25 4: {
23 'a1': ('a', 'a\n'), 26 'a1': ('a', 'a\n'),