comparison tests/test-convert-p4-filetypes.t @ 30632:1d0e4832e616

convert: parse perforce data on-demand We are using read-only attributes that parse the perforce data on demand. We are reading the data only once whenever an attribute is requested and use it throughout the import process. This is equivalent to the previous behavior, but we are avoiding reading from perforce when we initialize the object, but instead run it during the actual import process, when the first attribute is requested (usually getheads(), see `convertcmd.convert`).
author David Soria Parra <davidsp@fb.com>
date Tue, 20 Dec 2016 09:23:50 -0800
parents 64ed9f904532
children e304fd82c718
comparison
equal deleted inserted replaced
30631:c2be48e56d59 30632:1d0e4832e616
305 file_xtext:$Header$$Header$Header$ 305 file_xtext:$Header$$Header$Header$
306 306
307 convert 307 convert
308 $ hg convert -s p4 $DEPOTPATH dst 308 $ hg convert -s p4 $DEPOTPATH dst
309 initializing destination dst repository 309 initializing destination dst repository
310 scanning source...
310 reading p4 views 311 reading p4 views
311 collecting p4 changelists 312 collecting p4 changelists
312 1 initial 313 1 initial
313 2 keywords 314 2 keywords
314 scanning source...
315 sorting... 315 sorting...
316 converting... 316 converting...
317 1 initial 317 1 initial
318 0 keywords 318 0 keywords
319 $ hg -R dst log --template 'rev={rev} desc="{desc}" tags="{tags}" files="{files}"\n' 319 $ hg -R dst log --template 'rev={rev} desc="{desc}" tags="{tags}" files="{files}"\n'