Show More
@@ -184,6 +184,10 def convertsink(orig, sink): | |||
|
184 | 184 | self.repo.requirements.add('lfs') |
|
185 | 185 | self.repo._writerequirements() |
|
186 | 186 | |
|
187 | # Permanently enable lfs locally | |
|
188 | with self.repo.vfs('hgrc', 'a', text=True) as fp: | |
|
189 | fp.write('\n[extensions]\nlfs=\n') | |
|
190 | ||
|
187 | 191 | return node |
|
188 | 192 | |
|
189 | 193 | sink.__class__ = lfssink |
@@ -284,7 +284,8 parameters are available, but not --auth | |||
|
284 | 284 | 0 remove large_by_size.bin |
|
285 | 285 | $ cd nolargefiles |
|
286 | 286 | |
|
287 | The requirement is added to the destination repo | |
|
287 | The requirement is added to the destination repo, and the extension is enabled | |
|
288 | locally. | |
|
288 | 289 | |
|
289 | 290 | $ cat .hg/requires |
|
290 | 291 | dotencode |
@@ -293,6 +294,8 The requirement is added to the destinat | |||
|
293 | 294 | lfs |
|
294 | 295 | revlogv1 |
|
295 | 296 | store |
|
297 | $ hg config --debug extensions | grep lfs | |
|
298 | $TESTTMP/nolargefiles/.hg/hgrc:*: extensions.lfs= (glob) | |
|
296 | 299 | |
|
297 | 300 | $ hg log -r 'all()' -G -T '{rev} {join(lfs_files, ", ")} ({desc})\n' |
|
298 | 301 | o 8 (remove large_by_size.bin) |
@@ -644,3 +644,6 This convert is trickier, because it con | |||
|
644 | 644 | oid sha256:66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e |
|
645 | 645 | size 39 |
|
646 | 646 | x-is-binary 0 |
|
647 | ||
|
648 | $ hg -R convert_lfs2 config --debug extensions | grep lfs | |
|
649 | $TESTTMP/convert_lfs2/.hg/hgrc:*: extensions.lfs= (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now