189 return cmdutil.changeset_templater(self.ui, self.repo, |
189 return cmdutil.changeset_templater(self.ui, self.repo, |
190 False, None, '', False) |
190 False, None, '', False) |
191 |
191 |
192 def _wwrite(self, f, data, man): |
192 def _wwrite(self, f, data, man): |
193 '''Makes repo.wwrite backwards compatible.''' |
193 '''Makes repo.wwrite backwards compatible.''' |
|
194 # 656e06eebda7 removed file descriptor argument |
|
195 # 67982d3ee76c added flags argument |
194 try: |
196 try: |
195 self.repo.wwrite(f, data, man.flags(f)) |
197 self.repo.wwrite(f, data, man.flags(f)) |
196 except AttributeError: |
198 except (AttributeError, TypeError): |
197 # older versions want file descriptor as 3. optional arg |
|
198 self.repo.wwrite(f, data) |
199 self.repo.wwrite(f, data) |
199 |
200 |
200 def _normal(self, files): |
201 def _normal(self, files): |
201 '''Backwards compatible repo.dirstate.normal/update.''' |
202 '''Backwards compatible repo.dirstate.normal/update.''' |
202 try: |
203 try: |