Skip to content
Snippets Groups Projects
Commit 9a27c618 authored by Abderrahim Kitouni's avatar Abderrahim Kitouni
Browse files

remove broken tagging code (see issue 3 bb)

parent fbdacc88
No related branches found
No related tags found
No related merge requests found
......@@ -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 os
import gitrepo, hgrepo
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')),
......
......@@ -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):
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment