Commit 7029773
committed
Implemented revlog.append_entry as classmethod, to assure we will always actually write_append the new entry, instead of rewriting the whole file. Added file-locking and directory handling, so the implementation should be similar (enough) to the git reference implementation.
Next up is to implement a way to update the reflog when changing references, which is going to be a little more complicated1 parent 61f3db7 commit 7029773Copy full SHA for 7029773
4 files changed
+57-20Lines changed: 57 additions & 20 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- refs
- test
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+27-10Lines changed: 27 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
| 5 | + |
| 6 | + |
| 7 | + |
5 | 8 | |
6 | 9 | |
7 | 10 | |
8 | 11 | |
9 | 12 | |
10 | | - |
| 13 | + |
11 | 14 | |
12 | 15 | |
13 | 16 | |
| ||
151 | 154 | |
152 | 155 | |
153 | 156 | |
154 | | - |
| 157 | + |
155 | 158 | |
156 | 159 | |
157 | 160 | |
| ||
175 | 178 | |
176 | 179 | |
177 | 180 | |
| 181 | + |
| 182 | + |
178 | 183 | |
179 | 184 | |
180 | 185 | |
| ||
185 | 190 | |
186 | 191 | |
187 | 192 | |
188 | | - |
189 | | - |
| 193 | + |
| 194 | + |
| 195 | + |
190 | 196 | |
191 | 197 | |
192 | 198 | |
193 | 199 | |
194 | 200 | |
195 | | - |
| 201 | + |
| 202 | + |
| 203 | + |
196 | 204 | |
197 | 205 | |
198 | 206 | |
199 | | - |
200 | | - |
201 | | - |
202 | | - |
203 | | - |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
204 | 221 | |
205 | 222 | |
206 | 223 | |
|
Collapse file
+12-1Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
266 | 266 | |
267 | 267 | |
268 | 268 | |
269 | | - |
| 269 | + |
270 | 270 | |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
271 | 282 | |
272 | 283 | |
273 | 284 | |
|
Collapse file
+3-8Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
72 | 72 | |
73 | 73 | |
74 | 74 | |
75 | | - |
76 | | - |
| 75 | + |
| 76 | + |
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
| 80 | + |
86 | 81 | |
87 | 82 | |
88 | 83 | |
|
Collapse file
+15-1Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
26 | 26 | |
27 | 27 | |
28 | 28 | |
| ||
73 | 73 | |
74 | 74 | |
75 | 75 | |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
76 | 90 | |
77 | 91 | |
78 | 92 | |
|
0 commit comments