comparison stupid.py @ 307:1d48d9a34c19

Put authormap into a separate file, and make it much better too. See the doc-strings in maps.py for details.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sun, 03 May 2009 15:28:43 +0200
parents ce676eff002b
children b6c6d32c8ef1
comparison
equal deleted inserted replaced
306:e6853c7fa3af 307:1d48d9a34c19
521 current_ctx = context.memctx(hg_editor.repo, 521 current_ctx = context.memctx(hg_editor.repo,
522 [parentctx.node(), revlog.nullid], 522 [parentctx.node(), revlog.nullid],
523 r.message or util.default_commit_msg, 523 r.message or util.default_commit_msg,
524 files_touched, 524 files_touched,
525 filectxfn, 525 filectxfn,
526 hg_editor.authorforsvnauthor(r.author), 526 hg_editor.authors[r.author],
527 date, 527 date,
528 extra) 528 extra)
529 ha = hg_editor.repo.commitctx(current_ctx) 529 ha = hg_editor.repo.commitctx(current_ctx)
530 branch = extra.get('branch', None) 530 branch = extra.get('branch', None)
531 if not branch in hg_editor.branches: 531 if not branch in hg_editor.branches:
561 current_ctx = context.memctx(hg_editor.repo, 561 current_ctx = context.memctx(hg_editor.repo,
562 parents, 562 parents,
563 r.message or util.default_commit_msg, 563 r.message or util.default_commit_msg,
564 files_touched, 564 files_touched,
565 filectxfn, 565 filectxfn,
566 hg_editor.authorforsvnauthor(r.author), 566 hg_editor.authors[r.author],
567 date, 567 date,
568 {'branch': 'closed-branches'}) 568 {'branch': 'closed-branches'})
569 ha = hg_editor.repo.commitctx(current_ctx) 569 ha = hg_editor.repo.commitctx(current_ctx)
570 ui.status('Marked branch %s as closed.\n' % (b or 'default')) 570 ui.status('Marked branch %s as closed.\n' % (b or 'default'))
571 hg_editor._save_metadata() 571 hg_editor._save_metadata()