comparison tests/test-convert-cvs.t @ 35516:6a1a0a023fc1

test-convert-cvs: change TZ=US/Hawaii to TZ=Pacific/Johnston The former was limited to be known on Linux and the test failed on FreeBSD and Solaris platforms. The newer is known on Linux, FreeBSD and Solaris.
author Elmar Bartel <elb@leo.org>
date Mon, 01 Jan 2018 16:48:31 +0100
parents 47b9c572ca32
children a38ac7ec8e03
comparison
equal deleted inserted replaced
35515:e01549a7bf0a 35516:6a1a0a023fc1
78 78
79 An arbitrary (U.S.) time zone is used here. TZ=US/Hawaii is selected 79 An arbitrary (U.S.) time zone is used here. TZ=US/Hawaii is selected
80 since it does not use DST (unlike other U.S. time zones) and is always 80 since it does not use DST (unlike other U.S. time zones) and is always
81 a fixed difference from UTC. 81 a fixed difference from UTC.
82 82
83 $ TZ=US/Hawaii hg convert --config convert.localtimezone=True src src-hg 83 This choice is limited to work on Linux environments. At least on
84 FreeBSD 11 this timezone is not known. A better choice is
85 TZ=Pacific/Johnston. On Linux "US/Hawaii" is just a symlink to this
86 name and also it is known on FreeBSD and on Solaris.
87
88 $ TZ=Pacific/Johnston hg convert --config convert.localtimezone=True src src-hg
84 initializing destination src-hg repository 89 initializing destination src-hg repository
85 connecting to $TESTTMP/cvsrepo 90 connecting to $TESTTMP/cvsrepo
86 scanning source... 91 scanning source...
87 collecting CVS rlog 92 collecting CVS rlog
88 5 log entries 93 5 log entries
168 $TESTTMP/cvsrepo/src/b/c,v <-- *c (glob) 173 $TESTTMP/cvsrepo/src/b/c,v <-- *c (glob)
169 $ cd .. 174 $ cd ..
170 175
171 convert again 176 convert again
172 177
173 $ TZ=US/Hawaii hg convert --config convert.localtimezone=True src src-hg 178 $ TZ=Pacific/Johnston hg convert --config convert.localtimezone=True src src-hg
174 connecting to $TESTTMP/cvsrepo 179 connecting to $TESTTMP/cvsrepo
175 scanning source... 180 scanning source...
176 collecting CVS rlog 181 collecting CVS rlog
177 7 log entries 182 7 log entries
178 cvslog hook: 7 entries 183 cvslog hook: 7 entries
229 $TESTTMP/cvsrepo/src/b/c,v <-- *c (glob) 234 $TESTTMP/cvsrepo/src/b/c,v <-- *c (glob)
230 $ cd .. 235 $ cd ..
231 236
232 convert again 237 convert again
233 238
234 $ TZ=US/Hawaii hg convert --config convert.localtimezone=True src src-hg 239 $ TZ=Pacific/Johnston hg convert --config convert.localtimezone=True src src-hg
235 connecting to $TESTTMP/cvsrepo 240 connecting to $TESTTMP/cvsrepo
236 scanning source... 241 scanning source...
237 collecting CVS rlog 242 collecting CVS rlog
238 8 log entries 243 8 log entries
239 cvslog hook: 8 entries 244 cvslog hook: 8 entries
247 c 252 c
248 d 253 d
249 254
250 convert again with --filemap 255 convert again with --filemap
251 256
252 $ TZ=US/Hawaii hg convert --config convert.localtimezone=True --filemap filemap src src-filemap 257 $ TZ=Pacific/Johnston hg convert --config convert.localtimezone=True --filemap filemap src src-filemap
253 connecting to $TESTTMP/cvsrepo 258 connecting to $TESTTMP/cvsrepo
254 scanning source... 259 scanning source...
255 collecting CVS rlog 260 collecting CVS rlog
256 8 log entries 261 8 log entries
257 cvslog hook: 8 entries 262 cvslog hook: 8 entries
294 $TESTTMP/cvsrepo/src/b/c,v <-- *c (glob) 299 $TESTTMP/cvsrepo/src/b/c,v <-- *c (glob)
295 $ cd .. 300 $ cd ..
296 301
297 convert again 302 convert again
298 303
299 $ TZ=US/Hawaii hg convert --config convert.cvsps.fuzz=2 --config convert.localtimezone=True src src-hg 304 $ TZ=Pacific/Johnston hg convert --config convert.cvsps.fuzz=2 --config convert.localtimezone=True src src-hg
300 connecting to $TESTTMP/cvsrepo 305 connecting to $TESTTMP/cvsrepo
301 scanning source... 306 scanning source...
302 collecting CVS rlog 307 collecting CVS rlog
303 11 log entries 308 11 log entries
304 cvslog hook: 11 entries 309 cvslog hook: 11 entries