##// END OF EJS Templates
lfs: enable the extension locally after converting to an 'lfs' repo...
Matt Harbison -
r35216:8887a45e default
parent child Browse files
Show More
@@ -184,6 +184,10 def convertsink(orig, sink):
184 self.repo.requirements.add('lfs')
184 self.repo.requirements.add('lfs')
185 self.repo._writerequirements()
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 return node
191 return node
188
192
189 sink.__class__ = lfssink
193 sink.__class__ = lfssink
@@ -284,7 +284,8 parameters are available, but not --auth
284 0 remove large_by_size.bin
284 0 remove large_by_size.bin
285 $ cd nolargefiles
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 $ cat .hg/requires
290 $ cat .hg/requires
290 dotencode
291 dotencode
@@ -293,6 +294,8 The requirement is added to the destinat
293 lfs
294 lfs
294 revlogv1
295 revlogv1
295 store
296 store
297 $ hg config --debug extensions | grep lfs
298 $TESTTMP/nolargefiles/.hg/hgrc:*: extensions.lfs= (glob)
296
299
297 $ hg log -r 'all()' -G -T '{rev} {join(lfs_files, ", ")} ({desc})\n'
300 $ hg log -r 'all()' -G -T '{rev} {join(lfs_files, ", ")} ({desc})\n'
298 o 8 (remove large_by_size.bin)
301 o 8 (remove large_by_size.bin)
@@ -644,3 +644,6 This convert is trickier, because it con
644 oid sha256:66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e
644 oid sha256:66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e
645 size 39
645 size 39
646 x-is-binary 0
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