Mercurial > hg
comparison hgext/convert/cvs.py @ 8169:6584953be356
convert/cvs: add an option to disable remote log caching
Useful for debugging or testing when using --tmpdir.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 26 Apr 2009 16:30:37 +0200 |
parents | d22432bdcba1 |
children | a1a5a57efe90 |
comparison
equal
deleted
inserted
replaced
8168:8766fee6f225 | 8169:6584953be356 |
---|---|
65 | 65 |
66 if self.builtin: | 66 if self.builtin: |
67 # builtin cvsps code | 67 # builtin cvsps code |
68 self.ui.status(_('using builtin cvsps\n')) | 68 self.ui.status(_('using builtin cvsps\n')) |
69 | 69 |
70 db = cvsps.createlog(self.ui, cache='update') | 70 cache = 'update' |
71 if not self.ui.configbool('convert', 'cvsps.cache', True): | |
72 cache = None | |
73 db = cvsps.createlog(self.ui, cache=cache) | |
71 db = cvsps.createchangeset(self.ui, db, | 74 db = cvsps.createchangeset(self.ui, db, |
72 fuzz=int(self.ui.config('convert', 'cvsps.fuzz', 60)), | 75 fuzz=int(self.ui.config('convert', 'cvsps.fuzz', 60)), |
73 mergeto=self.ui.config('convert', 'cvsps.mergeto', None), | 76 mergeto=self.ui.config('convert', 'cvsps.mergeto', None), |
74 mergefrom=self.ui.config('convert', 'cvsps.mergefrom', None)) | 77 mergefrom=self.ui.config('convert', 'cvsps.mergefrom', None)) |
75 | 78 |