comparison hgsubversion/stupid.py @ 452:ae35c389cdef

tags: allow editing tags of closed branches without reopening the branch
author Augie Fackler <durin42@gmail.com>
date Fri, 26 Jun 2009 14:53:58 -0500
parents 0d3b5acb1d51
children ba65e97538d1
comparison
equal deleted inserted replaced
451:e533e78f1b2f 452:ae35c389cdef
622 date, 622 date,
623 extra) 623 extra)
624 ha = meta.repo.commitctx(current_ctx) 624 ha = meta.repo.commitctx(current_ctx)
625 625
626 branch = extra.get('branch', None) 626 branch = extra.get('branch', None)
627 if (not branch in meta.branches
628 and not meta.is_path_tag(meta.remotename(branch))):
629 meta.branches[branch] = None, 0, r.revnum
630 if not tag: 627 if not tag:
628 if (not branch in meta.branches
629 and not meta.is_path_tag(meta.remotename(branch))):
630 print tag, 'madebranch', branch
631 meta.branches[branch] = None, 0, r.revnum
631 meta.revmap[r.revnum, b] = ha 632 meta.revmap[r.revnum, b] = ha
633 else:
634 meta.movetag(tag, ha, parentctx.extra().get('branch', None), r, date)
632 util.describe_commit(ui, ha, b) 635 util.describe_commit(ui, ha, b)
633 if tag:
634 meta.movetag(tag, ha, parentctx.extra().get('branch', None), r, date)
635 636
636 # These are branches with an 'R' status in svn log. This means they were 637 # These are branches with an 'R' status in svn log. This means they were
637 # replaced by some other branch, so we need to verify they get marked as closed. 638 # replaced by some other branch, so we need to verify they get marked as closed.
638 for branch in check_deleted_branches: 639 for branch in check_deleted_branches:
639 closed = checkbranch(meta, r, branch) 640 closed = checkbranch(meta, r, branch)