Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hg-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
heptapod
hg-git
Commits
2d803766
Commit
2d803766
authored
10 years ago
by
Siddharth Agarwal
Browse files
Options
Downloads
Patches
Plain Diff
test-hg-tags-invalid: add a test for tag with space in it
There was previously an attempt to handle this but no test coverage.
parent
4bca27d2
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-hg-tags-invalid.t
+20
-3
20 additions, 3 deletions
tests/test-hg-tags-invalid.t
with
20 additions
and
3 deletions
tests/test-hg-tags-invalid.t
+
20
−
3
View file @
2d803766
...
...
@@ -20,8 +20,9 @@
0
files
updated
,
0
files
merged
,
0
files
removed
,
0
files
unresolved
$
fn_hg_tag
alph
#a
$
fn_hg_tag
bet*a
$
fn_hg_tag
'
gamm a
'
$
hg
push
pushing
to
$TESTTMP
/
gitrepo
Skipping
export
of
tag
bet*a
because
it
has
invalid
name
as
a
git
refname
.
searching
for
changes
adding
objects
...
...
@@ -23,8 +24,8 @@
$
hg
push
pushing
to
$TESTTMP
/
gitrepo
Skipping
export
of
tag
bet*a
because
it
has
invalid
name
as
a
git
refname
.
searching
for
changes
adding
objects
added
2
commits
with
2
trees
and
2
blobs
added
3
commits
with
3
trees
and
3
blobs
updating
reference
refs
/heads/mas
ter
adding
reference
refs
/tags/alp
h
#a
...
...
@@ -29,4 +30,5 @@
updating
reference
refs
/heads/mas
ter
adding
reference
refs
/tags/alp
h
#a
adding
reference
refs
/tags/gamm
_a
$
hg
log
--
graph
|
egrep
-
v
'
: *(not-master|master)
'
...
...
@@ -31,6 +33,6 @@
$
hg
log
--
graph
|
egrep
-
v
'
: *(not-master|master)
'
@
changeset:
2
:
e72bdd9ef5c0
@
changeset:
3
:
33
a29389ddad
|
tag:
default
/
master
|
tag:
tip
|
user:
test
...
...
@@ -34,6 +36,12 @@
|
tag:
default
/
master
|
tag:
tip
|
user:
test
|
date:
Mon
Jan
01
00
:
00
:
13
2007
+
0000
|
summary:
Added
tag
gamm
a
for
changeset
e72bdd9ef5c0
|
o
changeset:
2
:
e72bdd9ef5c0
|
tag:
gamm
a
|
user:
test
|
date:
Mon
Jan
01
00
:
00
:
12
2007
+
0000
|
summary:
Added
tag
bet*a
for
changeset
432
ce25d86bc
|
...
...
@@ -56,9 +64,10 @@
git
should
have
only
the
valid
tag
alph
#a but have full commit log including the missing invalid bet*a tag commit
$
git
tag
-
l
alph
#a
gamm_a
$
cd
..
$
hg
clone
gitrepo
hgrepo2
|
grep
-
v
'
^updating
'
importing
git
objects
into
hg
2
files
updated
,
0
files
merged
,
0
files
removed
,
0
files
unresolved
$
hg
-
R
hgrepo2
log
--
graph
|
egrep
-
v
'
: *(not-master|master)
'
...
...
@@ -59,10 +68,10 @@
$
cd
..
$
hg
clone
gitrepo
hgrepo2
|
grep
-
v
'
^updating
'
importing
git
objects
into
hg
2
files
updated
,
0
files
merged
,
0
files
removed
,
0
files
unresolved
$
hg
-
R
hgrepo2
log
--
graph
|
egrep
-
v
'
: *(not-master|master)
'
@
changeset:
2
:
e72bdd9ef5c0
@
changeset:
3
:
33
a29389ddad
|
tag:
default
/
master
|
tag:
tip
|
user:
test
...
...
@@ -66,6 +75,13 @@
|
tag:
default
/
master
|
tag:
tip
|
user:
test
|
date:
Mon
Jan
01
00
:
00
:
13
2007
+
0000
|
summary:
Added
tag
gamm
a
for
changeset
e72bdd9ef5c0
|
o
changeset:
2
:
e72bdd9ef5c0
|
tag:
gamm
a
|
tag:
gamm_a
|
user:
test
|
date:
Mon
Jan
01
00
:
00
:
12
2007
+
0000
|
summary:
Added
tag
bet*a
for
changeset
432
ce25d86bc
|
...
...
@@ -87,3 +103,4 @@
$
cat
hgrepo2
/.
hgtags
3442585
be8a60c6cd476bbc4e45755339f2a23ef
alph
#a
432
ce25d86bc4281747aa42e27b473b992e2b0b9
bet*a
e72bdd9ef5c0d6c50022480ee74cd9e48ae74e19
gamm
a
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