diff hgext/keyword.py @ 6933:17bdcd59b9ad

keyword: avoid additional conflicts during merge/resolve Make merge and resolve trigger kwtemplater.restricted to compare data without keyword expansion. The keyword stays outside the conflict: $Keyword$ <<<<<<< local bar ======= foo >>>>>>> other and will again be expanded on commit. Demonstrate in test case.
author Christian Ebert <blacktrash@gmx.net>
date Fri, 22 Aug 2008 08:26:18 +0200
parents e64f5abb8a88
children 292fb2ad2846
line wrap: on
line diff
--- a/hgext/keyword.py	Fri Aug 22 13:25:35 2008 +0200
+++ b/hgext/keyword.py	Fri Aug 22 08:26:18 2008 +0200
@@ -94,7 +94,7 @@
 
 # hg commands that trigger expansion only when writing to working dir,
 # not when reading filelog, and unexpand when reading from working dir
-restricted = 'record qfold qimport qnew qpush qrefresh qrecord'
+restricted = 'merge record resolve qfold qimport qnew qpush qrefresh qrecord'
 
 def utcdate(date):
     '''Returns hgdate in cvs-like UTC format.'''