comparison hgsubversion/svncommands.py @ 447:0d3b5acb1d51

tags: handle edits to tags as gracefully as possible
author Augie Fackler <durin42@gmail.com>
date Tue, 23 Jun 2009 21:38:27 -0500
parents cbd230043379
children fbc7cf4fd701
comparison
equal deleted inserted replaced
446:cbd230043379 447:0d3b5acb1d51
118 commitpath = revpath[len(subdir)+1:] 118 commitpath = revpath[len(subdir)+1:]
119 if commitpath.startswith('branches'): 119 if commitpath.startswith('branches'):
120 commitpath = commitpath[len('branches/'):] 120 commitpath = commitpath[len('branches/'):]
121 elif commitpath == 'trunk': 121 elif commitpath == 'trunk':
122 commitpath = '' 122 commitpath = ''
123 elif commitpath.startswith('tags'):
124 if ctx.extra().get('close'):
125 continue
126 commitpath = '../' + commitpath
123 else: 127 else:
124 assert False, 'Unhandled case in rebuildmeta' 128 assert False, 'Unhandled case in rebuildmeta'
125 revmap.write('%s %s %s\n' % (revision, ctx.hex(), commitpath)) 129 revmap.write('%s %s %s\n' % (revision, ctx.hex(), commitpath))
126 130
127 revision = int(revision) 131 revision = int(revision)