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
9a27c618
Commit
9a27c618
authored
15 years ago
by
Abderrahim Kitouni
Browse files
Options
Downloads
Patches
Plain Diff
remove broken tagging code (see issue 3 bb)
parent
fbdacc88
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
__init__.py
+2
-7
2 additions, 7 deletions
__init__.py
git_handler.py
+1
-1
1 addition, 1 deletion
git_handler.py
hgrepo.py
+0
-19
0 additions, 19 deletions
hgrepo.py
with
3 additions
and
27 deletions
__init__.py
+
2
−
7
View file @
9a27c618
...
...
@@ -14,8 +14,5 @@
'''
from
mercurial
import
commands
from
mercurial
import
hg
from
mercurial
import
util
from
mercurial
import
bundlerepo
from
mercurial
import
commands
,
extensions
,
hg
from
mercurial.i18n
import
_
...
...
@@ -21,6 +18,6 @@
from
mercurial.i18n
import
_
import
o
s
import
gitrepo
,
hgrep
o
from
git_handler
import
GitHandler
# support for `hg clone git://github.com/defunkt/facebox.git`
# also hg clone git+ssh://git@github.com/schacon/simplegit.git
...
...
@@ -23,8 +20,7 @@
from
git_handler
import
GitHandler
# support for `hg clone git://github.com/defunkt/facebox.git`
# also hg clone git+ssh://git@github.com/schacon/simplegit.git
import
gitrepo
,
hgrepo
hg
.
schemes
[
'
git
'
]
=
gitrepo
hg
.
schemes
[
'
git+ssh
'
]
=
gitrepo
...
...
@@ -45,7 +41,6 @@
git
=
GitHandler
(
repo
,
ui
)
git
.
clear
()
commands
.
norepo
+=
"
gclone
"
cmdtable
=
{
"
gimport
"
:
(
gimport
,
[],
_
(
'
hg gimport
'
)),
...
...
This diff is collapsed.
Click to expand it.
git_handler.py
+
1
−
1
View file @
9a27c618
...
...
@@ -689,7 +689,7 @@
def
export_hg_tags
(
self
):
for
tag
,
sha
in
self
.
repo
.
tags
().
iteritems
():
if
self
.
repo
.
tagtype
(
tag
)
==
'
git
'
:
if
self
.
repo
.
tagtype
(
tag
)
in
(
'
global
'
,
'
git
'
)
:
self
.
git
.
set_ref
(
'
refs/tags/
'
+
tag
,
self
.
map_git_get
(
hex
(
sha
)))
def
local_heads
(
self
):
...
...
This diff is collapsed.
Click to expand it.
hgrepo.py
+
0
−
19
View file @
9a27c618
...
...
@@ -146,25 +146,6 @@
else
:
super
(
hgrepo
,
self
).
push
(
remote
,
force
,
revs
)
def
tag
(
self
,
names
,
node
,
message
,
local
,
user
,
date
):
if
local
:
super
(
hgrepo
,
self
).
tag
(
names
,
node
,
message
,
local
,
user
,
date
)
return
if
isinstance
(
names
,
str
):
names
=
(
names
,)
allchars
=
''
.
join
(
names
)
for
c
in
self
.
tag_disallowed
:
if
c
in
allchars
:
raise
util
.
Abort
(
'
%r cannot be used in a tag name
'
%
c
)
git
=
GitHandler
(
self
,
self
.
ui
)
for
name
in
names
:
git
.
tags
[
name
]
=
hex
(
node
)
git
.
save_tags
()
def
tags
(
self
):
if
self
.
tagscache
:
return
self
.
tagscache
...
...
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