Mercurial > hg
comparison hgext/keyword.py @ 21703:99f7e5fe35f2 stable
keyword: suppress keyword expansion while 'hg unshelve' for internal merge
Before this patch, 'hg unshelve' may cause unexpected conflict, if 'hg
unshelve'-ed changes are located near lines in which keywords are
embedded, because keywords are substituted with other strings in the
working directory.
This patch suppresses keyword expansion while 'hg unshelve' for
internal merge by adding 'unshelve' to 'restricted' command list like
'merge'.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Thu, 05 Jun 2014 16:47:13 +0900 |
parents | 49f2d5644f04 |
children | 65dd65c645ed |
comparison
equal
deleted
inserted
replaced
21701:dedb68a9532c | 21703:99f7e5fe35f2 |
---|---|
100 nokwcommands = ('add addremove annotate bundle export grep incoming init log' | 100 nokwcommands = ('add addremove annotate bundle export grep incoming init log' |
101 ' outgoing push tip verify convert email glog') | 101 ' outgoing push tip verify convert email glog') |
102 | 102 |
103 # hg commands that trigger expansion only when writing to working dir, | 103 # hg commands that trigger expansion only when writing to working dir, |
104 # not when reading filelog, and unexpand when reading from working dir | 104 # not when reading filelog, and unexpand when reading from working dir |
105 restricted = 'merge kwexpand kwshrink record qrecord resolve transplant' | 105 restricted = ('merge kwexpand kwshrink record qrecord resolve transplant' |
106 ' unshelve') | |
106 | 107 |
107 # names of extensions using dorecord | 108 # names of extensions using dorecord |
108 recordextensions = 'record' | 109 recordextensions = 'record' |
109 | 110 |
110 colortable = { | 111 colortable = { |