Mercurial > hg
comparison hgext/convert/cvs.py @ 34153:8860100908eb
configitems: register the 'convert.cvsps.cache' config
The convert extensions has code a bit all around, but it seems simpler to use a
central declaration of options at the root first.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:32:53 +0200 |
parents | 1c5cbf28f007 |
children | 50f1c2d98db0 |
comparison
equal
deleted
inserted
replaced
34152:21c2df59a1da | 34153:8860100908eb |
---|---|
74 try: | 74 try: |
75 os.chdir(self.path) | 75 os.chdir(self.path) |
76 id = None | 76 id = None |
77 | 77 |
78 cache = 'update' | 78 cache = 'update' |
79 if not self.ui.configbool('convert', 'cvsps.cache', True): | 79 if not self.ui.configbool('convert', 'cvsps.cache'): |
80 cache = None | 80 cache = None |
81 db = cvsps.createlog(self.ui, cache=cache) | 81 db = cvsps.createlog(self.ui, cache=cache) |
82 db = cvsps.createchangeset(self.ui, db, | 82 db = cvsps.createchangeset(self.ui, db, |
83 fuzz=int(self.ui.config('convert', 'cvsps.fuzz', 60)), | 83 fuzz=int(self.ui.config('convert', 'cvsps.fuzz', 60)), |
84 mergeto=self.ui.config('convert', 'cvsps.mergeto', None), | 84 mergeto=self.ui.config('convert', 'cvsps.mergeto', None), |