##// END OF EJS Templates
Pass username to hgeditor, remove temporary file...
Radoslaw "AstralStorm" Szkodzinski -
r662:b55a7859 default
parent child Browse files
Show More
@@ -97,9 +97,12 b' class ui:'
97 97 os.environ.get("HGEDITOR") or
98 98 os.environ.get("EDITOR", "vi"))
99 99
100 os.environ["HGUSER"] = self.username()
100 101 util.system("%s %s" % (editor, name), errprefix = "edit failed")
101 102
102 103 t = open(name).read()
103 104 t = re.sub("(?m)^HG:.*\n", "", t)
104 105
106 os.unlink(name)
107
105 108 return t
General Comments 0
You need to be logged in to leave comments. Login now