Show More
@@ -97,9 +97,12 b' class ui:' | |||||
97 | os.environ.get("HGEDITOR") or |
|
97 | os.environ.get("HGEDITOR") or | |
98 | os.environ.get("EDITOR", "vi")) |
|
98 | os.environ.get("EDITOR", "vi")) | |
99 |
|
99 | |||
|
100 | os.environ["HGUSER"] = self.username() | |||
100 | util.system("%s %s" % (editor, name), errprefix = "edit failed") |
|
101 | util.system("%s %s" % (editor, name), errprefix = "edit failed") | |
101 |
|
102 | |||
102 | t = open(name).read() |
|
103 | t = open(name).read() | |
103 | t = re.sub("(?m)^HG:.*\n", "", t) |
|
104 | t = re.sub("(?m)^HG:.*\n", "", t) | |
104 |
|
105 | |||
|
106 | os.unlink(name) | |||
|
107 | ||||
105 | return t |
|
108 | return t |
General Comments 0
You need to be logged in to leave comments.
Login now