tests/test-largefiles.t
branchstable
changeset 17847 1e4eb1faba6e
parent 17843 66a613b59221
child 17894 afa7e6fa820b
equal deleted inserted replaced
17846:f42cf30873dc 17847:1e4eb1faba6e
   763 
   763 
   764   $ hg clone --all-largefiles a ssh://localhost/a
   764   $ hg clone --all-largefiles a ssh://localhost/a
   765   abort: --all-largefiles is incompatible with non-local destination ssh://localhost/a
   765   abort: --all-largefiles is incompatible with non-local destination ssh://localhost/a
   766   [255]
   766   [255]
   767 
   767 
   768 Test pulling with --all-largefiles flag
   768 Test pulling with --all-largefiles flag.  Also test that the largefiles are
       
   769 downloaded from 'default' instead of 'default-push' when no source is specified
       
   770 (issue3584)
   769 
   771 
   770   $ rm -Rf a-backup
   772   $ rm -Rf a-backup
   771   $ hg clone -r 1 a a-backup
   773   $ hg clone -r 1 a a-backup
   772   adding changesets
   774   adding changesets
   773   adding manifests
   775   adding manifests
   777   4 files updated, 0 files merged, 0 files removed, 0 files unresolved
   779   4 files updated, 0 files merged, 0 files removed, 0 files unresolved
   778   getting changed largefiles
   780   getting changed largefiles
   779   2 largefiles updated, 0 removed
   781   2 largefiles updated, 0 removed
   780   $ rm "${USERCACHE}"/*
   782   $ rm "${USERCACHE}"/*
   781   $ cd a-backup
   783   $ cd a-backup
   782   $ hg pull --all-largefiles
   784   $ hg pull --all-largefiles --config paths.default-push=bogus/path
   783   pulling from $TESTTMP/a (glob)
   785   pulling from $TESTTMP/a (glob)
   784   searching for changes
   786   searching for changes
   785   adding changesets
   787   adding changesets
   786   adding manifests
   788   adding manifests
   787   adding file changes
   789   adding file changes
   819   updating to branch default
   821   updating to branch default
   820   5 files updated, 0 files merged, 0 files removed, 0 files unresolved
   822   5 files updated, 0 files merged, 0 files removed, 0 files unresolved
   821   getting changed largefiles
   823   getting changed largefiles
   822   3 largefiles updated, 0 removed
   824   3 largefiles updated, 0 removed
   823   $ cd d
   825   $ cd d
   824   $ hg pull --rebase ../b
   826 
   825   pulling from ../b
   827 More rebase testing, but also test that the largefiles are downloaded from
       
   828 'default' instead of 'default-push' when no source is specified (issue3584).
       
   829 The error messages go away if repo 'b' is created with --all-largefiles.
       
   830   $ hg pull --rebase --all-largefiles --config paths.default-push=bogus/path --config paths.default=../b
       
   831   pulling from $TESTTMP/b (glob)
   826   searching for changes
   832   searching for changes
   827   adding changesets
   833   adding changesets
   828   adding manifests
   834   adding manifests
   829   adding file changes
   835   adding file changes
   830   added 1 changesets with 2 changes to 2 files (+1 heads)
   836   added 1 changesets with 2 changes to 2 files (+1 heads)
   831   Invoking status precommit hook
   837   Invoking status precommit hook
   832   M sub/normal4
   838   M sub/normal4
   833   M sub2/large6
   839   M sub2/large6
   834   saved backup bundle to $TESTTMP/d/.hg/strip-backup/f574fb32bb45-backup.hg (glob)
   840   saved backup bundle to $TESTTMP/d/.hg/strip-backup/f574fb32bb45-backup.hg (glob)
       
   841   large3: can't get file locally
       
   842   (no default or default-push path set in hgrc)
       
   843   sub/large4: can't get file locally
       
   844   (no default or default-push path set in hgrc)
       
   845   large1: can't get file locally
       
   846   (no default or default-push path set in hgrc)
       
   847   sub/large2: can't get file locally
       
   848   (no default or default-push path set in hgrc)
       
   849   sub/large2: can't get file locally
       
   850   (no default or default-push path set in hgrc)
       
   851   large1: can't get file locally
       
   852   (no default or default-push path set in hgrc)
       
   853   sub/large2: can't get file locally
       
   854   (no default or default-push path set in hgrc)
       
   855   large1: can't get file locally
       
   856   (no default or default-push path set in hgrc)
       
   857   sub/large2: can't get file locally
       
   858   (no default or default-push path set in hgrc)
       
   859   0 additional largefiles cached
       
   860   9 largefiles failed to download
   835   nothing to rebase
   861   nothing to rebase
   836   $ hg log --template '{rev}:{node|short}  {desc|firstline}\n'
   862   $ hg log --template '{rev}:{node|short}  {desc|firstline}\n'
   837   9:598410d3eb9a  modify normal file largefile in repo d
   863   9:598410d3eb9a  modify normal file largefile in repo d
   838   8:a381d2c8c80e  modify normal file and largefile in repo b
   864   8:a381d2c8c80e  modify normal file and largefile in repo b
   839   7:daea875e9014  add/edit more largefiles
   865   7:daea875e9014  add/edit more largefiles