Mercurial > public > mercurial-scm > hg
comparison mercurial/ui.py @ 8409:e84a8482c6f2
editor: move HG: filtering from ui to commiteditor
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 14 May 2009 13:21:17 -0500 |
parents | dcebff8a25dd |
children | d728f126c1b7 |
comparison
equal
deleted
inserted
replaced
8408:72538f1909ec | 8409:e84a8482c6f2 |
---|---|
322 onerr=util.Abort, errprefix=_("edit failed")) | 322 onerr=util.Abort, errprefix=_("edit failed")) |
323 | 323 |
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 |
331 return t | 330 return t |
332 | 331 |