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
b2e00d67
Commit
b2e00d67
authored
13 years ago
by
Greg Ward
Browse files
Options
Downloads
Patches
Plain Diff
largefiles: test lfconvert with rename, remove, and merge
parent
7ef13e53
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test-lfconvert.t
+91
-0
91 additions, 0 deletions
tests/test-lfconvert.t
with
91 additions
and
0 deletions
tests/test-lfconvert.t
+
91
−
0
View file @
b2e00d67
...
...
@@ -2,6 +2,7 @@
>
[
extensions
]
>
largefiles
=
>
share
=
>
graphlog
=
>
[
largefiles
]
>
minsize
=
0.5
>
patterns
=
**.
dat
...
...
@@ -73,6 +74,96 @@
3
b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3
$
cd
..
add
some
changesets
to
rename
/
remove
/
merge
$
cd
bigfile
-
repo
$
hg
mv
-
q
sub
stuff
$
hg
commit
-
m
"
rename
sub
/
to
stuff
/"
$
hg
update
-
q
1
$
echo
blah
>>
normal3
$
echo
blah
>>
sub
/
normal2
$
echo
blah
>>
sub
/
maybelarge
.
dat
$
sha1sum
sub
/
maybelarge
.
dat
76236
b6a2c6102826c61af4297dd738fb3b1de38
sub
/
maybelarge
.
dat
$
hg
commit
-
A
-
m
"
add
normal3
,
modify
sub
/*"
adding
normal3
created
new
head
$
hg
rm
large
normal3
$
hg
commit
-
q
-
m
"
remove
large
,
normal3
"
$
hg
merge
merging
sub
/
maybelarge
.
dat
and
stuff
/
maybelarge
.
dat
to
stuff
/
maybelarge
.
dat
warning
:
$
TESTTMP
/
bigfile
-
repo
/
stuff
/
maybelarge
.
dat
looks
like
a
binary
file
.
merging
stuff
/
maybelarge
.
dat
failed!
merging
sub
/
normal2
and
stuff
/
normal2
to
stuff
/
normal2
0
files
updated
,
1
files
merged
,
0
files
removed
,
1
files
unresolved
use
'
hg
resolve
'
to
retry
unresolved
file
merges
or
'
hg
update
-
C
.'
to
abandon
[1]
$
hg
cat
-
r
.
sub
/
maybelarge
.
dat
>
stuff
/
maybelarge
.
dat
$
hg
resolve
-
m
stuff
/
maybelarge
.
dat
$
hg
commit
-
m
"
merge
"
$ hg glog --template "{
rev
}:{
node
|
short
}
{
desc
|
firstline
}
\
n
"
@ 5:4884f215abda merge
|
\
| o 4:7285f817b77e remove large, normal3
| |
| o 3:67e3892e3534 add normal3, modify sub/*
| |
o | 2:c96c8beb5d56 rename sub/ to stuff/
|/
o 1:020c65d24e11 add sub/*
|
o 0:117b8328f97a add large, normal1
$ cd ..
lfconvert with rename, merge, and remove
$ hg lfconvert --size 0.2 bigfile-repo largefiles2-repo
initializing destination largefiles2-repo
$ cd largefiles2-repo
$ hg glog --template
"{
rev
}:{
node
|
short
}
{
desc
|
firstline
}
\
n
"
o 5:8e05f5f2b77e merge
|
\
| o 4:a5a02de7a8e4 remove large, normal3
| |
| o 3:55759520c76f add normal3, modify sub/*
| |
o | 2:261ad3f3f037 rename sub/ to stuff/
|/
o 1:334e5237836d add sub/*
|
o 0:d4892ec57ce2 add large, normal1
$ hg locate -r 2
.hglf/large
.hglf/stuff/maybelarge.dat
normal1
stuff/normal2
$ hg locate -r 3
.hglf/large
.hglf/sub/maybelarge.dat
normal1
normal3
sub/normal2
$ hg locate -r 4
.hglf/sub/maybelarge.dat
normal1
sub/normal2
$ hg locate -r 5
.hglf/stuff/maybelarge.dat
normal1
stuff/normal2
$ hg update
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
getting changed largefiles
1 largefiles updated, 0 removed
$ cat stuff/normal2
alsonormal
blah
$ sha1sum stuff/maybelarge.dat
76236b6a2c6102826c61af4297dd738fb3b1de38 stuff/maybelarge.dat
$ cat .hglf/stuff/maybelarge.dat
76236b6a2c6102826c61af4297dd738fb3b1de38
$ cd ..
"
lfconvert
"
error cases
$ hg lfconvert http://localhost/foo foo
abort: http://localhost/foo is not a local Mercurial repo
...
...
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