##// END OF EJS Templates
tests: demonstrate broken {file_copies} template with remotefilelog...
Martin von Zweigbergk -
r41227:93c2beb9 default
parent child Browse files
Show More
@@ -1,118 +1,118 b''
1 1 #require no-windows
2 2
3 3 $ . "$TESTDIR/remotefilelog-library.sh"
4 4
5 5 $ hg init master
6 6 $ cd master
7 7 $ cat >> .hg/hgrc <<EOF
8 8 > [remotefilelog]
9 9 > server=True
10 10 > EOF
11 11 $ echo x > x
12 12 $ hg commit -qAm x
13 13 $ mkdir dir
14 14 $ echo y > dir/y
15 15 $ hg commit -qAm y
16 16
17 17 $ cd ..
18 18
19 19 Shallow clone from full
20 20
21 21 $ hgcloneshallow ssh://user@dummy/master shallow --noupdate
22 22 streaming all changes
23 23 2 files to transfer, 473 bytes of data
24 24 transferred 473 bytes in * seconds (*/sec) (glob)
25 25 searching for changes
26 26 no changes found
27 27 $ cd shallow
28 28 $ cat .hg/requires
29 29 dotencode
30 30 exp-remotefilelog-repo-req-1
31 31 fncache
32 32 generaldelta
33 33 revlogv1
34 34 sparserevlog
35 35 store
36 36
37 37 $ hg update
38 38 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
39 39 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
40 40
41 41 Log on a file without -f
42 42
43 43 $ hg log dir/y
44 44 warning: file log can be slow on large repos - use -f to speed it up
45 45 changeset: 1:2e73264fab97
46 46 tag: tip
47 47 user: test
48 48 date: Thu Jan 01 00:00:00 1970 +0000
49 49 summary: y
50 50
51 51 Log on a file with -f
52 52
53 53 $ hg log -f dir/y
54 54 changeset: 1:2e73264fab97
55 55 tag: tip
56 56 user: test
57 57 date: Thu Jan 01 00:00:00 1970 +0000
58 58 summary: y
59 59
60 60 Log on a file with kind in path
61 61 $ hg log -r "filelog('path:dir/y')"
62 62 changeset: 1:2e73264fab97
63 63 tag: tip
64 64 user: test
65 65 date: Thu Jan 01 00:00:00 1970 +0000
66 66 summary: y
67 67
68 68 Log on multiple files with -f
69 69
70 70 $ hg log -f dir/y x
71 71 changeset: 1:2e73264fab97
72 72 tag: tip
73 73 user: test
74 74 date: Thu Jan 01 00:00:00 1970 +0000
75 75 summary: y
76 76
77 77 changeset: 0:b292c1e3311f
78 78 user: test
79 79 date: Thu Jan 01 00:00:00 1970 +0000
80 80 summary: x
81 81
82 82 Log on a directory
83 83
84 84 $ hg log dir
85 85 changeset: 1:2e73264fab97
86 86 tag: tip
87 87 user: test
88 88 date: Thu Jan 01 00:00:00 1970 +0000
89 89 summary: y
90 90
91 91 Log on a file from inside a directory
92 92
93 93 $ cd dir
94 94 $ hg log y
95 95 warning: file log can be slow on large repos - use -f to speed it up
96 96 changeset: 1:2e73264fab97
97 97 tag: tip
98 98 user: test
99 99 date: Thu Jan 01 00:00:00 1970 +0000
100 100 summary: y
101 101
102 102 Log on a file via -fr
103 103 $ cd ..
104 104 $ hg log -fr tip dir/ --template '{rev}\n'
105 105 1
106 106
107 107 Trace renames
108 108 $ hg mv x z
109 109 $ hg commit -m move
110 $ hg log -f z -T '{desc}\n' -G
111 @ move
110 $ hg log -f z -T '{desc} {file_copies}\n' -G
111 @ move z (x\x14\x06\xe7A\x18bv\x94&\x84\x17I\x1f\x01\x8aJ\x881R\xf0) (esc)
112 112 :
113 113 o x
114 114
115 115
116 116 Verify remotefilelog handles rename metadata stripping when comparing file sizes
117 117 $ hg debugrebuilddirstate
118 118 $ hg status
General Comments 0
You need to be logged in to leave comments. Login now