##// END OF EJS Templates
convert/cvs: add an option to disable remote log caching...
Patrick Mezard -
r8169:6584953b default
parent child Browse files
Show More
@@ -123,6 +123,9 b' def convert(ui, src, dest=None, revmapfi'
123 Internal cvsps is selected by setting
123 Internal cvsps is selected by setting
124 --config convert.cvsps=builtin
124 --config convert.cvsps=builtin
125 and has a few more configurable options:
125 and has a few more configurable options:
126 --config convert.cvsps.cache=True (boolean)
127 Set to False to disable remote log caching, for testing and
128 debugging purposes.
126 --config convert.cvsps.fuzz=60 (integer)
129 --config convert.cvsps.fuzz=60 (integer)
127 Specify the maximum time (in seconds) that is allowed
130 Specify the maximum time (in seconds) that is allowed
128 between commits with identical user and log message in a
131 between commits with identical user and log message in a
@@ -67,7 +67,10 b' class convert_cvs(converter_source):'
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),
@@ -14,6 +14,7 b' echo "convert = " >> $HGRCPATH'
14 echo "graphlog = " >> $HGRCPATH
14 echo "graphlog = " >> $HGRCPATH
15 echo "[convert]" >> $HGRCPATH
15 echo "[convert]" >> $HGRCPATH
16 echo "cvsps=builtin" >> $HGRCPATH
16 echo "cvsps=builtin" >> $HGRCPATH
17 echo "cvsps.cache=0" >> $HGRCPATH
17
18
18 echo % create cvs repository
19 echo % create cvs repository
19 mkdir cvsrepo
20 mkdir cvsrepo
@@ -108,6 +108,9 b' convert a foreign SCM repository to a Me'
108 Internal cvsps is selected by setting
108 Internal cvsps is selected by setting
109 --config convert.cvsps=builtin
109 --config convert.cvsps=builtin
110 and has a few more configurable options:
110 and has a few more configurable options:
111 --config convert.cvsps.cache=True (boolean)
112 Set to False to disable remote log caching, for testing and
113 debugging purposes.
111 --config convert.cvsps.fuzz=60 (integer)
114 --config convert.cvsps.fuzz=60 (integer)
112 Specify the maximum time (in seconds) that is allowed
115 Specify the maximum time (in seconds) that is allowed
113 between commits with identical user and log message in a
116 between commits with identical user and log message in a
General Comments 0
You need to be logged in to leave comments. Login now