equal
deleted
inserted
replaced
1354 edittext.append("") |
1354 edittext.append("") |
1355 # run editor in the repository root |
1355 # run editor in the repository root |
1356 olddir = os.getcwd() |
1356 olddir = os.getcwd() |
1357 os.chdir(repo.root) |
1357 os.chdir(repo.root) |
1358 text = repo.ui.edit("\n".join(edittext), ctx.user()) |
1358 text = repo.ui.edit("\n".join(edittext), ctx.user()) |
1359 text = re.sub("(?m)^HG:.*\n", "", text) |
1359 text = re.sub("(?m)^HG:.*(\n|$)", "", text) |
1360 os.chdir(olddir) |
1360 os.chdir(olddir) |
1361 |
1361 |
1362 if not text.strip(): |
1362 if not text.strip(): |
1363 raise util.Abort(_("empty commit message")) |
1363 raise util.Abort(_("empty commit message")) |
1364 |
1364 |