##// END OF EJS Templates
store encoding: .i/.d encoding for non-store repo (broken by 810387f59696)
Benoit Boissinot -
r8633:c31fe74a default
parent child Browse files
Show More
@@ -171,8 +171,9 b' class basicstore:'
171 self.pathjoiner = pathjoiner
171 self.pathjoiner = pathjoiner
172 self.path = path
172 self.path = path
173 self.createmode = _calcmode(path)
173 self.createmode = _calcmode(path)
174 self.opener = opener(self.path)
174 op = opener(self.path)
175 self.opener.createmode = self.createmode
175 op.createmode = self.createmode
176 self.opener = lambda f, *args, **kw: op(encodedir(f), *args, **kw)
176
177
177 def join(self, f):
178 def join(self, f):
178 return self.pathjoiner(self.path, encodedir(f))
179 return self.pathjoiner(self.path, encodedir(f))
@@ -48,4 +48,23 b' echo'
48 echo "% hg verify"
48 echo "% hg verify"
49 hg verify
49 hg verify
50
50
51 # try non store repo encoding
52 cd ..
53 echo % non store repo
54 hg --config format.usestore=False init foo
55 cd foo
56 mkdir tst.d
57 echo foo > tst.d/foo
58 hg ci -Amfoo
59 ls -R .hg
60
61 cd ..
62 echo % non fncache repo
63 hg --config format.usefncache=False init bar
64 cd bar
65 mkdir tst.d
66 echo foo > tst.d/Foo
67 hg ci -Amfoo
68 ls -R .hg
69
51 exit 0
70 exit 0
@@ -41,3 +41,41 b' checking files'
41 3 files, 3 changesets, 3 total revisions
41 3 files, 3 changesets, 3 total revisions
42 3 integrity errors encountered!
42 3 integrity errors encountered!
43 (first damaged changeset appears to be 0)
43 (first damaged changeset appears to be 0)
44 % non store repo
45 adding tst.d/foo
46 .hg:
47 00changelog.i
48 00manifest.i
49 data
50 dirstate
51 requires
52 undo
53 undo.branch
54 undo.dirstate
55
56 .hg/data:
57 tst.d.hg
58
59 .hg/data/tst.d.hg:
60 foo.i
61 % non fncache repo
62 adding tst.d/Foo
63 .hg:
64 00changelog.i
65 dirstate
66 requires
67 store
68 undo.branch
69 undo.dirstate
70
71 .hg/store:
72 00changelog.i
73 00manifest.i
74 data
75 undo
76
77 .hg/store/data:
78 tst.d.hg
79
80 .hg/store/data/tst.d.hg:
81 _foo.i
General Comments 0
You need to be logged in to leave comments. Login now