equal
deleted
inserted
replaced
2713 committext = buildcommittext(repo, ctx, subs, extramsg) |
2713 committext = buildcommittext(repo, ctx, subs, extramsg) |
2714 |
2714 |
2715 # run editor in the repository root |
2715 # run editor in the repository root |
2716 olddir = os.getcwd() |
2716 olddir = os.getcwd() |
2717 os.chdir(repo.root) |
2717 os.chdir(repo.root) |
|
2718 |
|
2719 # make in-memory changes visible to external process |
|
2720 tr = repo.currenttransaction() |
|
2721 repo.dirstate.write(tr) |
|
2722 pending = tr and tr.writepending() and repo.root |
|
2723 |
2718 editortext = repo.ui.edit(committext, ctx.user(), ctx.extra(), |
2724 editortext = repo.ui.edit(committext, ctx.user(), ctx.extra(), |
2719 editform=editform) |
2725 editform=editform, pending=pending) |
2720 |
|
2721 text = re.sub("(?m)^HG:.*(\n|$)", "", editortext) |
2726 text = re.sub("(?m)^HG:.*(\n|$)", "", editortext) |
2722 os.chdir(olddir) |
2727 os.chdir(olddir) |
2723 |
2728 |
2724 if finishdesc: |
2729 if finishdesc: |
2725 text = finishdesc(text) |
2730 text = finishdesc(text) |