Mercurial > hg
changeset 15318:acecb419e5b0 stable
largefiles: testcase to simulate inter-user clone on local machine
author | Eli Carter <eli.carter@tektronix.com> |
---|---|
date | Thu, 20 Oct 2011 09:35:37 -0500 |
parents | 41f371150ccb |
children | 9da7e96cd5c2 |
files | tests/test-largefiles.t |
diffstat | 1 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-largefiles.t Thu Oct 20 13:24:11 2011 -0400 +++ b/tests/test-largefiles.t Thu Oct 20 09:35:37 2011 -0500 @@ -701,3 +701,32 @@ $ cd .. $ rm -rf bigfile-repo largefiles-repo +Clone a local repository owned by another user +We have to simulate that here by setting $HOME and removing write permissions + $ ORIGHOME="$HOME" + $ mkdir alice + $ HOME="`pwd`/alice" + $ cd alice + $ hg init pubrepo + $ cd pubrepo + $ dd if=/dev/urandom bs=1k count=11k > a-large-file 2> /dev/null + $ hg add --large a-large-file + $ hg commit -m "Add a large file" + $ cd .. + $ chmod -R a-w pubrepo + $ cd .. + $ mkdir bob + $ HOME="`pwd`/bob" + $ cd bob + $ hg clone ../alice/pubrepo pubrepo + requesting all changes + adding changesets + adding manifests + adding file changes + added 1 changesets with 1 changes to 1 files + updating to branch default + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + getting changed largefiles + 1 largefiles updated, 0 removed + $ cd .. + $ HOME="$ORIGHOME"