[PATCH 1 of 3] keyword: remove mq commands from restricted list

Christian Ebert blacktrash at gmx.net
Fri Apr 23 05:24:14 CDT 2010


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1272011941 -7200
# Node ID a93ca895ae5120d7f15d24bfe2eeaaf879233cb9
# Parent  db4d7077f48d1a9d2f2e2d477a319f09f69cb5f9
keyword: remove mq commands from restricted list

Monkeypatching patch.diff takes care of this since 911f5be5d159.

Test mq more thoroughly by loosening [keywordmaps] and comparing
the output of hg cat with keyword expansion enabled and disabled.

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -92,8 +92,7 @@
 
 # hg commands that trigger expansion only when writing to working dir,
 # not when reading filelog, and unexpand when reading from working dir
-restricted = ('merge record resolve qfold qimport qnew qpush qrefresh qrecord'
-              ' transplant')
+restricted = 'merge record qrecord resolve transplant'
 
 # provide cvs-like UTC date filter
 utcdate = lambda x: util.datestr((x[0], 0), '%Y/%m/%d %H:%M:%S')


More information about the Mercurial-devel mailing list