diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-01-24 16:40:02 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-01-24 16:40:02 +0000 |
commit | 846c4a4510ef66700658aa5ccedff1e39228e9c9 (patch) | |
tree | b4dca86f2d6faeed826ff179e71fbf02524c020c /lorry | |
parent | adebc1ee98c162a952e93f7cd27f2476e0215492 (diff) | |
download | lorry-846c4a4510ef66700658aa5ccedff1e39228e9c9.tar.gz |
lorry: remove tagify_svn_branches
The branches generated by git-svn appear to be lightweight tags
These are just a reference to a commit, the script to convert these
into full tags may not create the same sha1 for each tag.
This shows that git-svn is not properly handling tags
there is no such thing as a remote tag, so they have to be fetched
into refs/tags
I could change the refspecs to do this, but given this is just an
intermediate stage before they are pushed to another repository it
would only be visible to people poking their noses in the working area
Diffstat (limited to 'lorry')
-rwxr-xr-x | lorry | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -170,17 +170,6 @@ class Lorry(cliapp.Application): self.progress('.. removing temporary fast-export file ' + exports[branch]) os.remove(exports[branch]) - def tagify_svn_branches(self, gitdir): - out = self.run_program(['git', 'for-each-ref', '--format=%(refname)', - 'refs/remotes/svn/tags'], cwd=gitdir) - tagbranchrefs = set(out.splitlines()) - tags = set(self.run_program(['git', 'tag'], cwd=gitdir).splitlines()) - for ref in tagbranchrefs: - tag = ref.split('/')[-1] - if tag not in tags: - self.run_program(['git', 'tag', '-a', '-m', '', tag, ref], - cwd=gitdir) - def gitify_svn(self, project_name, dirname, gitdir, spec): if not os.path.exists(gitdir): self.progress('.. doing initial clone') @@ -214,8 +203,6 @@ class Lorry(cliapp.Application): self.progress('.. updating existing clone') # update the remote tracking branches self.run_program(['git', 'svn', 'fetch'], cwd=gitdir) - # convert any tag branches into real tags - self.tagify_svn_branches(gitdir) def gitify_cvs(self, project_name, dirname, gitdir, spec): self.run_program(['git', 'cvsimport', '-d', spec['url'], |