comparison svncommand.py @ 28:9c481cae0428

Change the format of generated tags so they are tag/$tag instead of tag:$tag so that you can use them as revision args in diff.
author Augie Fackler <durin42@gmail.com>
date Fri, 10 Oct 2008 14:19:06 -0500
parents 1a5bb173170b
children a9c15cae50e5
comparison
equal deleted inserted replaced
27:b66ed66c82e4 28:9c481cae0428
60 f = open(hg_editor.tag_info_file) 60 f = open(hg_editor.tag_info_file)
61 tag_info = pickle.load(f) 61 tag_info = pickle.load(f)
62 f = open(os.path.join(hg_repo_path, '.hg', 'localtags'), 'w') 62 f = open(os.path.join(hg_repo_path, '.hg', 'localtags'), 'w')
63 for tag, source in tag_info.iteritems(): 63 for tag, source in tag_info.iteritems():
64 source_ha = hg_editor.get_parent_revision(source[1]+1, source[0]) 64 source_ha = hg_editor.get_parent_revision(source[1]+1, source[0])
65 f.write('%s tag:%s\n' % (node.hex(source_ha), tag)) 65 f.write('%s tag/%s\n' % (node.hex(source_ha), tag))
66 66
67 @register_subcommand('up') 67 @register_subcommand('up')
68 def update(ui, args, repo, clean=False, **opts): 68 def update(ui, args, repo, clean=False, **opts):
69 """Update to a specified Subversion revision number. 69 """Update to a specified Subversion revision number.
70 """ 70 """