Mercurial > hgsubversion
diff svnrepo.py @ 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 | tag_repo.py@98740f66a70c |
children | 75f082b5897e |
line wrap: on
line diff
copy from tag_repo.py copy 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):