Skip to content
Snippets Groups Projects
Commit 8887a45e authored by Matt Harbison's avatar Matt Harbison
Browse files

lfs: enable the extension locally after converting to an 'lfs' repo

This is consistent with clone and share in the previous commits.
parent a8c778b2
No related branches found
No related tags found
No related merge requests found
......@@ -184,6 +184,10 @@
self.repo.requirements.add('lfs')
self.repo._writerequirements()
# Permanently enable lfs locally
with self.repo.vfs('hgrc', 'a', text=True) as fp:
fp.write('\n[extensions]\nlfs=\n')
return node
sink.__class__ = lfssink
......
......@@ -284,7 +284,8 @@
0 remove large_by_size.bin
$ cd nolargefiles
The requirement is added to the destination repo
The requirement is added to the destination repo, and the extension is enabled
locally.
$ cat .hg/requires
dotencode
......@@ -293,6 +294,8 @@
lfs
revlogv1
store
$ hg config --debug extensions | grep lfs
$TESTTMP/nolargefiles/.hg/hgrc:*: extensions.lfs= (glob)
$ hg log -r 'all()' -G -T '{rev} {join(lfs_files, ", ")} ({desc})\n'
o 8 (remove large_by_size.bin)
......
......@@ -644,3 +644,6 @@
oid sha256:66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e
size 39
x-is-binary 0
$ hg -R convert_lfs2 config --debug extensions | grep lfs
$TESTTMP/convert_lfs2/.hg/hgrc:*: extensions.lfs= (glob)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment