[PATCH 2 of 2 V3] record_curses: fix ui bug for newly added file
Laurent Charignon
lcharignon at fb.com
Thu Mar 26 15:30:54 CDT 2015
# HG changeset patch
# User Laurent Charignon <lcharignon at fb.com>
# Date 1427326374 25200
# Wed Mar 25 16:32:54 2015 -0700
# Node ID ac6e0dff43e6a69a148e9bbe611eb0a35c1b44bb
# Parent d2276d7c1db113d743e15929106bfe65edb2e804
record_curses: fix ui bug for newly added file
With record's curses interface toggling and untoggling a newly added file
would lead to a confusing UI (the header was marked as partial and the hunks
as unselected)
diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -822,7 +822,7 @@
diff_re = re.compile('diff -r .* (.*)$')
allhunks_re = re.compile('(?:index|deleted file) ')
pretty_re = re.compile('(?:new file|deleted file) ')
- special_re = re.compile('(?:index|new|deleted|copy|rename) ')
+ special_re = re.compile('(?:index|deleted|copy|rename) ')
def __init__(self, header):
self.header = header
More information about the Mercurial-devel
mailing list