Show More
@@ -7,7 +7,7 b'' | |||||
7 |
|
7 | |||
8 | from node import hex, nullid, nullrev, short |
|
8 | from node import hex, nullid, nullrev, short | |
9 | from i18n import _ |
|
9 | from i18n import _ | |
10 | import os, sys, bisect, stat, errno |
|
10 | import os, sys, bisect, stat, errno, re | |
11 | import mdiff, bdiff, util, templater, patch, error, encoding |
|
11 | import mdiff, bdiff, util, templater, patch, error, encoding | |
12 | import match as _match |
|
12 | import match as _match | |
13 |
|
13 | |||
@@ -1252,6 +1252,7 b' def commitforceeditor(repo, ctx, added, ' | |||||
1252 | olddir = os.getcwd() |
|
1252 | olddir = os.getcwd() | |
1253 | os.chdir(repo.root) |
|
1253 | os.chdir(repo.root) | |
1254 | text = repo.ui.edit("\n".join(edittext), ctx.user()) |
|
1254 | text = repo.ui.edit("\n".join(edittext), ctx.user()) | |
|
1255 | text = re.sub("(?m)^HG:.*\n", "", text) | |||
1255 | os.chdir(olddir) |
|
1256 | os.chdir(olddir) | |
1256 |
|
1257 | |||
1257 | if not text.strip(): |
|
1258 | if not text.strip(): |
General Comments 0
You need to be logged in to leave comments.
Login now