tests/test-largefiles.t
branchstable
changeset 15318 acecb419e5b0
parent 15313 3eb1a90ea409
child 15328 9b4ab5f7ad2a
equal deleted inserted replaced
15317:41f371150ccb 15318:acecb419e5b0
   699   8b0629c630f530cde051aeb42ce561756738fbe7
   699   8b0629c630f530cde051aeb42ce561756738fbe7
   700   187a0f76e02aac9c24f71c820be1f34ef1c76e76
   700   187a0f76e02aac9c24f71c820be1f34ef1c76e76
   701   $ cd ..
   701   $ cd ..
   702   $ rm -rf bigfile-repo largefiles-repo
   702   $ rm -rf bigfile-repo largefiles-repo
   703 
   703 
       
   704 Clone a local repository owned by another user
       
   705 We have to simulate that here by setting $HOME and removing write permissions
       
   706   $ ORIGHOME="$HOME"
       
   707   $ mkdir alice
       
   708   $ HOME="`pwd`/alice"
       
   709   $ cd alice
       
   710   $ hg init pubrepo
       
   711   $ cd pubrepo
       
   712   $ dd if=/dev/urandom bs=1k count=11k > a-large-file 2> /dev/null
       
   713   $ hg add --large a-large-file
       
   714   $ hg commit -m "Add a large file"
       
   715   $ cd ..
       
   716   $ chmod -R a-w pubrepo
       
   717   $ cd ..
       
   718   $ mkdir bob
       
   719   $ HOME="`pwd`/bob"
       
   720   $ cd bob
       
   721   $ hg clone ../alice/pubrepo pubrepo
       
   722   requesting all changes
       
   723   adding changesets
       
   724   adding manifests
       
   725   adding file changes
       
   726   added 1 changesets with 1 changes to 1 files
       
   727   updating to branch default
       
   728   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   729   getting changed largefiles
       
   730   1 largefiles updated, 0 removed
       
   731   $ cd ..
       
   732   $ HOME="$ORIGHOME"