##// END OF EJS Templates
editor: move HG: filtering from ui to commiteditor
Matt Mackall -
r8409:e84a8482 default
parent child Browse files
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():
@@ -324,7 +324,6 b' class ui(object):'
324 f = open(name)
324 f = open(name)
325 t = f.read()
325 t = f.read()
326 f.close()
326 f.close()
327 t = re.sub("(?m)^HG:.*\n", "", t)
328 finally:
327 finally:
329 os.unlink(name)
328 os.unlink(name)
330
329
General Comments 0
You need to be logged in to leave comments. Login now