##// END OF EJS Templates
test-lfs: add tests covering local exchanges...
Matt Harbison -
r35518:67611e06 default
parent child Browse files
Show More
@@ -56,6 +56,11 b''
56 > url=file:$TESTTMP/dummy-remote/
56 > url=file:$TESTTMP/dummy-remote/
57 > EOF
57 > EOF
58
58
59 TODO: Push to a local non-lfs repo with the extension enabled should add the
60 lfs requirement
61
62 $ grep lfs $TESTTMP/server/.hg/requires
63 [1]
59 $ hg push -v | egrep -v '^(uncompressed| )'
64 $ hg push -v | egrep -v '^(uncompressed| )'
60 pushing to $TESTTMP/server
65 pushing to $TESTTMP/server
61 searching for changes
66 searching for changes
@@ -65,6 +70,8 b''
65 adding manifests
70 adding manifests
66 adding file changes
71 adding file changes
67 added 2 changesets with 2 changes to 2 files
72 added 2 changesets with 2 changes to 2 files
73 $ grep lfs $TESTTMP/server/.hg/requires
74 [1]
68
75
69 # Unknown URL scheme
76 # Unknown URL scheme
70
77
@@ -83,6 +90,12 b''
83 > EOF
90 > EOF
84
91
85 # Pull from server
92 # Pull from server
93
94 TODO: Pulling a local lfs repo into a local non-lfs repo with the extension
95 enabled should add the lfs requirement
96
97 $ grep lfs .hg/requires $TESTTMP/server/.hg/requires
98 [1]
86 $ hg pull default
99 $ hg pull default
87 pulling from $TESTTMP/server
100 pulling from $TESTTMP/server
88 requesting all changes
101 requesting all changes
@@ -92,6 +105,8 b''
92 added 2 changesets with 2 changes to 2 files
105 added 2 changesets with 2 changes to 2 files
93 new changesets b29ba743f89d:00c137947d30
106 new changesets b29ba743f89d:00c137947d30
94 (run 'hg update' to get a working copy)
107 (run 'hg update' to get a working copy)
108 $ grep lfs .hg/requires $TESTTMP/server/.hg/requires
109 [1]
95
110
96 # Check the blobstore is not yet populated
111 # Check the blobstore is not yet populated
97 $ [ -d .hg/store/lfs/objects ]
112 $ [ -d .hg/store/lfs/objects ]
@@ -855,3 +870,45 b' Committing deleted files works:'
855 $ hg commit -m 'add A' -A A
870 $ hg commit -m 'add A' -A A
856 $ hg rm A
871 $ hg rm A
857 $ hg commit -m 'rm A'
872 $ hg commit -m 'rm A'
873 $ cd ..
874
875 TODO: Unbundling adds a requirement to a non-lfs repo, if necessary.
876
877 $ hg bundle -R $TESTTMP/repo-del -qr 0 --base null nolfs.hg
878 $ hg bundle -R convert_lfs2 -qr tip --base null lfs.hg
879 $ hg init unbundle
880 $ hg pull -R unbundle -q nolfs.hg
881 $ grep lfs unbundle/.hg/requires
882 [1]
883 $ hg pull -R unbundle -q lfs.hg
884 $ grep lfs unbundle/.hg/requires
885 [1]
886
887 $ hg init no_lfs
888 $ cat >> no_lfs/.hg/hgrc <<EOF
889 > [experimental]
890 > changegroup3 = True
891 > [extensions]
892 > lfs=!
893 > EOF
894 $ cp -R no_lfs no_lfs2
895
896 Pushing from a local lfs repo to a local repo without an lfs requirement and
897 with lfs disabled, fails.
898
899 $ hg push -R convert_lfs2 no_lfs
900 pushing to no_lfs
901 abort: required features are not supported in the destination: lfs
902 [255]
903 $ grep lfs no_lfs/.hg/requires
904 [1]
905
906 Pulling from a local lfs repo to a local repo without an lfs requirement and
907 with lfs disabled, fails.
908
909 $ hg pull -R no_lfs2 convert_lfs2
910 pulling from convert_lfs2
911 abort: required features are not supported in the destination: lfs
912 [255]
913 $ grep lfs no_lfs2/.hg/requires
914 [1]
General Comments 0
You need to be logged in to leave comments. Login now