equal
deleted
inserted
replaced
211 for f in candidates: |
211 for f in candidates: |
212 fp = self.repo.file(f, kwcnt=True, kwexp=expand) |
212 fp = self.repo.file(f, kwcnt=True, kwexp=expand) |
213 data, cnt = fp.read(man[f]) |
213 data, cnt = fp.read(man[f]) |
214 if cnt: |
214 if cnt: |
215 notify(_('overwriting %s %s keywords\n') % (f, action)) |
215 notify(_('overwriting %s %s keywords\n') % (f, action)) |
216 self.repo.wwrite(f, data, man.flags(f)) |
216 try: |
|
217 self.repo.wwrite(f, data, man.flags(f)) |
|
218 except AttributeError: |
|
219 # older versions want file descriptor as 3. optional arg |
|
220 self.repo.wwrite(f, data) |
217 files.append(f) |
221 files.append(f) |
218 if files: |
222 if files: |
219 self.repo.dirstate.update(files, 'n') |
223 self.repo.dirstate.update(files, 'n') |
220 |
224 |
221 class kwfilelog(filelog.filelog): |
225 class kwfilelog(filelog.filelog): |