Mercurial > hgsubversion
comparison rebuildmeta.py @ 196:77812f98e250
Add a naive hg svn version command that works as long as hgsubversion is run from a checkout.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 10 Feb 2009 14:52:26 -0600 |
parents | 57355b0e7bd1 |
children | 30df375590d1 |
comparison
equal
deleted
inserted
replaced
195:906d3f302b45 | 196:77812f98e250 |
---|---|
106 tagsinfo[tag] = source, rev | 106 tagsinfo[tag] = source, rev |
107 tagsinfofile = open(os.path.join(svnmetadir, 'tag_info'), 'w') | 107 tagsinfofile = open(os.path.join(svnmetadir, 'tag_info'), 'w') |
108 pickle.dump(tagsinfo, tagsinfofile) | 108 pickle.dump(tagsinfo, tagsinfofile) |
109 tagsinfofile.close() | 109 tagsinfofile.close() |
110 rebuildmeta = util.register_subcommand('rebuildmeta')(rebuildmeta) | 110 rebuildmeta = util.register_subcommand('rebuildmeta')(rebuildmeta) |
111 | 111 rebuildmeta = util.command_needs_no_url(rebuildmeta) |
112 | 112 |
113 def determinebranch(branch): | 113 def determinebranch(branch): |
114 if branch.startswith('branches'): | 114 if branch.startswith('branches'): |
115 branch = branch[len('branches/'):] | 115 branch = branch[len('branches/'):] |
116 elif branch == 'trunk': | 116 elif branch == 'trunk': |