Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hg-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
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
Admin message
This instance will be upgraded to Heptapod 17.9.2 on 2025-04-24 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
mercurial
hg-git
Commits
0349981b
Commit
0349981b
authored
4 years ago
by
Dan Villiom Podlaski Christiansen
Browse files
Options
Downloads
Patches
Plain Diff
pull: add test for re-pulling published changesets
parent
aebd49fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test-bookmark-workflow.t
+35
-0
35 additions, 0 deletions
tests/test-bookmark-workflow.t
with
35 additions
and
0 deletions
tests/test-bookmark-workflow.t
+
35
−
0
View file @
0349981b
...
...
@@ -402,3 +402,38 @@
added 1 commits with 1 trees and 1 blobs
updating reference refs/heads/b2
$ cd ..
Verify that pulling already existing, published changesets from git
doesn
'
t
unpublish
changesets
.
This
is
a
three
-
step
operation:
1
)
Pull
and
publish
changesets
from
Git
.
2
)
Transfer
those
changesets
to
another
Mercurial
repository
,
which
loses
the
hg
-
git
state
.
3
)
Pull
from
Git
,
but
without
publishing
enabled
.
Previously
,
the
final
operation
would
cause
the
changesets
to
revert
to
draft
state
.
First
,
enact
the
full
workflow:
$
hg
clone
-
q hggitlocalrepo
hggitlocalrepo
-
2
$
hg
-
R
hggitlocalrepo
-
2
phase
tip
7
:
public
$
hg
-
R
hggitlocalrepo
-
2
pull
gitremoterepo
pulling
from
gitremoterepo
importing
git
objects
into
hg
(
run
'
hg update
'
to
get
a
working
copy
)
$
hg
-
R
hggitlocalrepo
-
2
phase
tip
7
:
draft
$
rm
-
rf
hggitlocalrepo
-
2
Then
,
reproduce
explicitly:
$
cd
hggitlocalrepo
$
hg
phase
-
r
master
6
:
public
$
hg
gclear
clearing
out
the
git
cache
data
$
hg
pull
--
config
hggit
.
usephases
=
no
pulling
from
$TESTTMP
/
gitremoterepo
importing
git
objects
into
hg
(
run
'
hg update
'
to
get
a
working
copy
)
$
hg
phase
-
r
master
6
:
draft
$
cd
..
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