Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/hgext/convert/cvs.py Sun Apr 26 14:49:49 2009 +0200 +++ b/hgext/convert/cvs.py Sun Apr 26 16:30:37 2009 +0200 @@ -67,7 +67,10 @@ # builtin cvsps code self.ui.status(_('using builtin cvsps\n')) - db = cvsps.createlog(self.ui, cache='update') + cache = 'update' + if not self.ui.configbool('convert', 'cvsps.cache', True): + cache = None + db = cvsps.createlog(self.ui, cache=cache) db = cvsps.createchangeset(self.ui, db, fuzz=int(self.ui.config('convert', 'cvsps.fuzz', 60)), mergeto=self.ui.config('convert', 'cvsps.mergeto', None),