comparison tests/test-convert-p4-filetypes.t @ 28639:64ed9f904532

tests: fix for failure of test-convert-p4-filetypes.t Before this patch, test-convert-p4-filetypes.t fails (at least with 2015.2/1366233 version of p4/p4d), because some files below are omitted in expected output for revision 1. - file_tempobj - file_xtempobj These files are: - add-ed at revision 0, and - edit-ed at revision 1 According to perforce command reference below, file type 'tempobj' and 'xtempobj' imply '+S' modifier, which indicates that "Only the head revision is stored". This means that these files should appear only in the most recent revision (= revision 1). https://www.perforce.com/perforce/doc.current/manuals/cmdref/file.types.html BTW, test-convert-p4-filetypes.t with 2015.2/1366233 version of p4/p4d fails similarly also at recent revisions for hgext/convert/p4.py in 2015. Therefore, this patch should be reviewed by perforce guru, to examine whether this failure depends on version (and/or configuration) of p4/p4d or not.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sat, 26 Mar 2016 12:55:52 +0900
parents c63a09b6b337
children 1d0e4832e616
comparison
equal deleted inserted replaced
28638:44319097e7b9 28639:64ed9f904532
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'
320 rev=1 desc="keywords" tags="tip" files="crazy_symlink+k file_binary file_binary+k file_binary+kx file_binary+x file_ctext file_cxtext file_ktext file_kxtext file_ltext file_text file_text+c file_text+d file_text+f file_text+k file_text+ko file_text+kx file_text+l file_text+m file_text+s file_text+s2 file_text+w file_text+x file_ubinary file_uxbinary file_xbinary file_xltext file_xtext target_symlink target_symlink+k" 320 rev=1 desc="keywords" tags="tip" files="crazy_symlink+k file_binary file_binary+k file_binary+kx file_binary+x file_ctext file_cxtext file_ktext file_kxtext file_ltext file_tempobj file_text file_text+c file_text+d file_text+f file_text+k file_text+ko file_text+kx file_text+l file_text+m file_text+s file_text+s2 file_text+w file_text+x file_ubinary file_uxbinary file_xbinary file_xltext file_xtempobj file_xtext target_symlink target_symlink+k"
321 rev=0 desc="initial" tags="" files="file_binary file_binary+k file_binary+kx file_binary+x file_ctext file_cxtext file_ktext file_kxtext file_ltext file_symlink file_symlink+k file_text file_text+c file_text+d file_text+f file_text+k file_text+ko file_text+kx file_text+l file_text+m file_text+s2 file_text+w file_text+x file_ubinary file_uxbinary file_xbinary file_xltext file_xtext target_symlink target_symlink+k" 321 rev=0 desc="initial" tags="" files="file_binary file_binary+k file_binary+kx file_binary+x file_ctext file_cxtext file_ktext file_kxtext file_ltext file_symlink file_symlink+k file_text file_text+c file_text+d file_text+f file_text+k file_text+ko file_text+kx file_text+l file_text+m file_text+s2 file_text+w file_text+x file_ubinary file_uxbinary file_xbinary file_xltext file_xtext target_symlink target_symlink+k"
322 322
323 revision 0 323 revision 0
324 $ hg -R dst update 0 324 $ hg -R dst update 0
325 30 files updated, 0 files merged, 0 files removed, 0 files unresolved 325 30 files updated, 0 files merged, 0 files removed, 0 files unresolved
404 ==> dst/file_xtext <== 404 ==> dst/file_xtext <==
405 this is xtext 405 this is xtext
406 406
407 revision 1 407 revision 1
408 $ hg -R dst update 1 408 $ hg -R dst update 1
409 30 files updated, 0 files merged, 0 files removed, 0 files unresolved 409 32 files updated, 0 files merged, 0 files removed, 0 files unresolved
410 $ head dst/file_* | cat -v 410 $ head dst/file_* | cat -v
411 ==> dst/file_binary <== 411 ==> dst/file_binary <==
412 this is binary$Id$ 412 this is binary$Id$
413 $Header$ 413 $Header$
414 $Date$ 414 $Date$
523 $Change$ 523 $Change$
524 $File$ 524 $File$
525 $Revision$ 525 $Revision$
526 $Header$$Header$Header$ 526 $Header$$Header$Header$
527 527
528 ==> dst/file_tempobj <==
529 this is tempobj
530 $Id$
531 $Header$
532 $Date$
533 $DateTime$
534 $Change$
535 $File$
536 $Revision$
537 $Header$$Header$Header$
538
528 ==> dst/file_text <== 539 ==> dst/file_text <==
529 this is text 540 this is text
530 $Id$ 541 $Id$
531 $Header$ 542 $Header$
532 $Date$ 543 $Date$
701 $Revision$ 712 $Revision$
702 $Header$$Header$Header$ 713 $Header$$Header$Header$
703 714
704 ==> dst/file_xltext <== 715 ==> dst/file_xltext <==
705 this is xltext 716 this is xltext
717 $Id$
718 $Header$
719 $Date$
720 $DateTime$
721 $Change$
722 $File$
723 $Revision$
724 $Header$$Header$Header$
725
726 ==> dst/file_xtempobj <==
727 this is xtempobj
706 $Id$ 728 $Id$
707 $Header$ 729 $Header$
708 $Date$ 730 $Date$
709 $DateTime$ 731 $DateTime$
710 $Change$ 732 $Change$