mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
218aab4168
Summary: p4fastimport has been replaced by p4seqimport months ago, on top of that previous assumptions have changed that might make p4fastimport not work (e.g. allowing import to connect to LFS). This change cleans up a lot of unused code and a bunch of tests that no longer make sense. Reviewed By: zhh95 Differential Revision: D8525286 fbshipit-source-id: 91d33e7530bf6df1e1ec92fae3acde0345230247
46 lines
876 B
Perl
46 lines
876 B
Perl
#require p4
|
|
|
|
$ . $TESTDIR/p4setup.sh
|
|
|
|
populate the depot
|
|
$ mkdir Main
|
|
$ echo a > 'Main/@'
|
|
$ echo b > 'Main/#'
|
|
$ echo c > 'Main/*'
|
|
$ echo d > 'Main/%'
|
|
$ echo d > 'Main/a'
|
|
$ p4 add -f 'Main/@' 'Main/#' 'Main/*' 'Main/%' 'Main/a'
|
|
//depot/Main/%40#1 - opened for add
|
|
//depot/Main/%23#1 - opened for add
|
|
//depot/Main/%2A#1 - opened for add
|
|
//depot/Main/%25#1 - opened for add
|
|
//depot/Main/a#1 - opened for add
|
|
$ p4 submit -d initial
|
|
Submitting change 1.
|
|
Locking 5 files ...
|
|
add //depot/Main/%23#1
|
|
add //depot/Main/%25#1
|
|
add //depot/Main/%2A#1
|
|
add //depot/Main/%40#1
|
|
add //depot/Main/a#1
|
|
Change 1 submitted.
|
|
|
|
Simple import
|
|
|
|
$ cd $hgwd
|
|
$ hg init --config 'format.usefncache=False'
|
|
$ hg p4seqimport -P $P4ROOT hg-p4-import
|
|
|
|
Verify
|
|
|
|
$ hg manifest -r 0
|
|
Main/#
|
|
Main/%
|
|
Main/*
|
|
Main/@
|
|
Main/a
|
|
|
|
End Test
|
|
|
|
stopping the p4 server
|