Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
8887a45e
Commit
8887a45e
authored
7 years ago
by
Matt Harbison
Browse files
Options
Downloads
Patches
Plain Diff
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
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hgext/lfs/wrapper.py
+4
-0
4 additions, 0 deletions
hgext/lfs/wrapper.py
tests/test-lfs-largefiles.t
+4
-1
4 additions, 1 deletion
tests/test-lfs-largefiles.t
tests/test-lfs.t
+3
-0
3 additions, 0 deletions
tests/test-lfs.t
with
11 additions
and
1 deletion
hgext/lfs/wrapper.py
+
4
−
0
View file @
8887a45e
...
...
@@ -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]
\n
lfs=
\n
'
)
return
node
sink
.
__class__
=
lfssink
...
...
This diff is collapsed.
Click to expand it.
tests/test-lfs-largefiles.t
+
4
−
1
View file @
8887a45e
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
tests/test-lfs.t
+
3
−
0
View file @
8887a45e
...
...
@@ -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)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment