##// END OF EJS Templates
keyword: move common code out of commit condition
Christian Ebert -
r7378:8dde2756 default
parent child Browse files
Show More
@@ -165,14 +165,12 b' class kwtemplater(object):'
165 165
166 166 def overwrite(self, node, expand, files):
167 167 '''Overwrites selected files expanding/shrinking keywords.'''
168 ctx = self.repo[node]
169 mf = ctx.manifest()
168 170 if node is not None: # commit
169 ctx = self.repo[node]
170 mf = ctx.manifest()
171 171 files = [f for f in ctx.files() if f in mf]
172 172 notify = self.ui.debug
173 173 else: # kwexpand/kwshrink
174 ctx = self.repo[None]
175 mf = ctx.manifest()
176 174 notify = self.ui.note
177 175 candidates = [f for f in files if self.iskwfile(f, ctx.flags)]
178 176 if candidates:
General Comments 0
You need to be logged in to leave comments. Login now