# HG changeset patch # User timeless # Date 2016-03-02 05:27:07 # Node ID d2e154dddb6e1c5434d89f67c54d8c10efb32c64 # Parent 7f77e71e5d7eb69a5b5d3366d187f9914d1d439a templater: ignore orig/rej files If your mercurial/templates/ directory is dirty, then the template system would otherwise import duplicate templates from the .orig files and potentially try to parse .rej files. Since editing/reverting these templates isn't an unexpected action, and since they're in .hgignore, it's best that the template system know to skip them." diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -891,6 +891,8 @@ def stylelist(): stylelist = [] for file in dirlist: split = file.split(".") + if split[-1] in ('orig', 'rej'): + continue if split[0] == "map-cmdline": stylelist.append(split[1]) return ", ".join(sorted(stylelist))