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
Show more breadcrumbs
mercurial
hg-git
Commits
70b17f18
Commit
70b17f18
authored
3 years ago
by
Dan Villiom Podlaski Christiansen
Browse files
Options
Downloads
Patches
Plain Diff
test-git-tags: include phase in tests
parent
852f0fe3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!103
pull: ensure that all commits are at least draft
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test-git-tags.t
+21
-21
21 additions, 21 deletions
tests/test-git-tags.t
with
21 additions
and
21 deletions
tests/test-git-tags.t
+
21
−
21
View file @
70b17f18
...
...
@@ -3,7 +3,7 @@
$
cat
>>
$HGRCPATH
<<
EOF
>
[
templates
]
>
shorttags
=
'
{rev}:{node|short} {tags}{if(obsolete, " X")}\n
'
>
shorttags
=
'
{rev}:{node|short}
{phase}
{tags}{if(obsolete, " X")}\n
'
>
EOF
$
git
init
gitrepo
...
...
@@ -129,10 +129,10 @@
$ echo beta-fix-again >> beta
$ fn_hg_commit --amend
$ hg log -T shorttags
3:3094b9e8da41 tip
2:61175962e488 default/master X
1:7fe02317c63d beta
0:ff7a2f2d8d70 alpha
3:3094b9e8da41
draft
tip
2:61175962e488
draft
default/master X
1:7fe02317c63d
draft
beta
0:ff7a2f2d8d70
draft
alpha
$ hg tags
tip 3:3094b9e8da41
default/master 2:61175962e488
...
...
@@ -163,10 +163,10 @@
pulling from $TESTTMP/gitrepo
no changes found
$ hg log -T shorttags
3:3094b9e8da41 default/master tip
2:61175962e488 detached X
1:7fe02317c63d beta
0:ff7a2f2d8d70 alpha
3:3094b9e8da41
draft
default/master tip
2:61175962e488
draft
detached X
1:7fe02317c63d
draft
beta
0:ff7a2f2d8d70
draft
alpha
$ hg tags
tip 3:3094b9e8da41
default/master 3:3094b9e8da41
...
...
@@ -188,7 +188,7 @@
$ touch gamma
$ fn_hg_commit -A -m
'
add
gamma
'
$ hg log -T shorttags -r
'
gittag
()'
0:ff7a2f2d8d70 alpha
1:7fe02317c63d beta
2:61175962e488 detached X
0:ff7a2f2d8d70
draft
alpha
1:7fe02317c63d
draft
beta
2:61175962e488
draft
detached X
$ hg log -T shorttags -r
'
gittag
(
detached
)'
...
...
@@ -194,3 +194,3 @@
$ hg log -T shorttags -r
'
gittag
(
detached
)'
2:61175962e488 detached X
2:61175962e488
draft
detached X
$ hg log -T shorttags -r
'
gittag
("
re:a$
")'
...
...
@@ -196,6 +196,6 @@
$ hg log -T shorttags -r
'
gittag
("
re:a$
")'
0:ff7a2f2d8d70 alpha
1:7fe02317c63d beta
0:ff7a2f2d8d70
draft
alpha
1:7fe02317c63d
draft
beta
Create a git tag from hg, but pointing to a new commit:
...
...
@@ -275,9 +275,9 @@
updating to branch default
4 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg log -r
'
ancestors
(
master
)
and
tagged
()'
-T shorttags -R hgrepo-2
0:ff7a2f2d8d70 alpha
3:0eb1ab0073a8 beta gamma
4:c49682c7cba4 default/master tip
0:ff7a2f2d8d70
draft
alpha
3:0eb1ab0073a8
draft
beta gamma
4:c49682c7cba4
draft
default/master tip
$ rm -rf hgrepo-2
$ hg clone -r master gitrepo hgrepo-2
...
...
@@ -286,9 +286,9 @@
updating to branch default
4 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg log -r
'
tagged
()'
-T shorttags -R hgrepo-2
0:ff7a2f2d8d70 alpha
3:0eb1ab0073a8 beta gamma
4:c49682c7cba4 default/master tip
0:ff7a2f2d8d70
draft
alpha
3:0eb1ab0073a8
draft
beta gamma
4:c49682c7cba4
draft
default/master tip
This used to die:
$ hg -R hgrepo-2 gexport
$ rm -rf hgrepo-2
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