#require p4 $ . $TESTDIR/p4setup.sh populate the depot $ mkdir Main $ mkdir Main/b $ echo a > Main/a $ echo c > Main/b/c $ echo d > Main/d $ p4 add Main/a Main/b/c Main/d //depot/Main/a#1 - opened for add //depot/Main/b/c#1 - opened for add //depot/Main/d#1 - opened for add $ p4 submit -d initial Submitting change 1. Locking 3 files ... add //depot/Main/a#1 add //depot/Main/b/c#1 add //depot/Main/d#1 Change 1 submitted. $ p4 edit Main/a Main/b/c Main/d //depot/Main/a#1 - opened for edit //depot/Main/b/c#1 - opened for edit //depot/Main/d#1 - opened for edit $ echo a >> Main/a $ echo c >> Main/b/c $ echo d >> Main/d $ p4 submit -d second Submitting change 2. Locking 3 files ... edit //depot/Main/a#2 edit //depot/Main/b/c#2 edit //depot/Main/d#2 Change 2 submitted. Test archiving something $ cat >desc < Depot: archive > Description: Archive > Type: archive > Map: archive/... > EOF $ p4 depot -i