Mercurial > hgsubversion
changeset 328:48ec2d62dc29
Rename tag_repo.py to svnrepo.py and get rid of the 'fake' tags.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Sat, 09 May 2009 12:34:29 +0200 |
parents | 98740f66a70c |
children | 235022089da6 |
files | __init__.py svnrepo.py tag_repo.py |
diffstat | 2 files changed, 3 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/__init__.py +++ b/__init__.py @@ -24,7 +24,7 @@ from mercurial import util as hgutil from svn import core import svncommands -import tag_repo +import svnrepo import util import wrappers import svnexternals @@ -98,10 +98,10 @@ def svn(ui, repo, subcommand, *args, **o def reposetup(ui, repo): if repo.local(): - tag_repo.generate_repo_class(ui, repo) + svnrepo.generate_repo_class(ui, repo) for scheme in ('svn', 'svn+ssh', 'svn+http', 'svn+file'): - hg.schemes[scheme] = tag_repo + hg.schemes[scheme] = svnrepo cmdtable = { "svn":
rename from tag_repo.py rename to svnrepo.py --- a/tag_repo.py +++ b/svnrepo.py @@ -52,20 +52,8 @@ def generate_repo_class(ui, repo): for tag, source in hg_editor.tags.iteritems(): target = hg_editor.get_parent_revision(source[1]+1, source[0]) tags['tag/%s' % tag] = node.hex(target) - # TODO: should we even generate these tags? - if not hasattr(self, '_nofaketags'): - for (revnum, branch), node_hash in hg_editor.revmap.iteritems(): - tags['%s@r%d' % (branch or 'trunk', revnum)] = node_hash return tags - @localsvn - def tagslist(self): - try: - self._nofaketags = True - return super(svnlocalrepo, self).tagslist() - finally: - del self._nofaketags - repo.__class__ = svnlocalrepo class svnremoterepo(mercurial.repo.repository):