##// END OF EJS Templates
keyword: restore restricted read mode value after overwriting...
Christian Ebert -
r12496:0b5d7da3 default
parent child Browse files
Show More
@@ -198,6 +198,7 b' class kwtemplater(object):'
198 candidates = [f for f in ctx.files() if f in ctx]
198 candidates = [f for f in ctx.files() if f in ctx]
199 candidates = [f for f in candidates if self.iskwfile(f, ctx.flags)]
199 candidates = [f for f in candidates if self.iskwfile(f, ctx.flags)]
200 if candidates:
200 if candidates:
201 restrict = self.restrict
201 self.restrict = True # do not expand when reading
202 self.restrict = True # do not expand when reading
202 mf = ctx.manifest()
203 mf = ctx.manifest()
203 msg = (expand and _('overwriting %s expanding keywords\n')
204 msg = (expand and _('overwriting %s expanding keywords\n')
@@ -223,7 +224,7 b' class kwtemplater(object):'
223 self.repo.dirstate.normal(f)
224 self.repo.dirstate.normal(f)
224 elif self.record:
225 elif self.record:
225 self.repo.dirstate.normallookup(f)
226 self.repo.dirstate.normallookup(f)
226 self.restrict = False
227 self.restrict = restrict
227
228
228 def shrinktext(self, text):
229 def shrinktext(self, text):
229 '''Unconditionally removes all keyword substitutions from text.'''
230 '''Unconditionally removes all keyword substitutions from text.'''
General Comments 0
You need to be logged in to leave comments. Login now