Mercurial > hgsubversion
comparison hgsubversion/stupid.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 | dfb3afa6c619 |
children | 9c3b4f59e7e6 |
comparison
equal
deleted
inserted
replaced
943:c49c3c418f9d | 944:d6db289f1548 |
---|---|
233 svnbackend = None | 233 svnbackend = None |
234 | 234 |
235 def patchrepo(ui, meta, parentctx, patchfp): | 235 def patchrepo(ui, meta, parentctx, patchfp): |
236 if not svnbackend: | 236 if not svnbackend: |
237 return patchrepoold(ui, meta, parentctx, patchfp) | 237 return patchrepoold(ui, meta, parentctx, patchfp) |
238 store = patch.filestore() | 238 store = patch.filestore(util.getfilestoresize(ui)) |
239 try: | 239 try: |
240 touched = set() | 240 touched = set() |
241 backend = svnbackend(ui, meta.repo, parentctx, store) | 241 backend = svnbackend(ui, meta.repo, parentctx, store) |
242 | 242 |
243 try: | 243 try: |