# # # patch "tracvc/mtn/automate.py" # from [1cb754d8f77cb7405b9e92facaa14dde58572c06] # to [d041a51cc889c12614f9f52bad708e049e3d0cf7] # # patch "tracvc/mtn/backend.py" # from [42e8c27bc7e7f79789b0951b2e56c1320bd17536] # to [a14f49afc8c292e539e11bd31843019150418069] # ============================================================ --- tracvc/mtn/automate.py 1cb754d8f77cb7405b9e92facaa14dde58572c06 +++ tracvc/mtn/automate.py d041a51cc889c12614f9f52bad708e049e3d0cf7 @@ -232,13 +232,13 @@ class MTN(object): certs.setdefault(name, []).append(value) return certs - def file(self, file_id): + def get_file(self, file_id): """Returns the file contents for a given file id.""" return self.automate.command("get_file", [file_id]) def file_length(self, file_id): """Return the file length.""" - return len(self.file(file_id)) + return len(self.get_file(file_id)) def changesets(self, rev): """Parses a textual changeset into an instance of the ============================================================ --- tracvc/mtn/backend.py 42e8c27bc7e7f79789b0951b2e56c1320bd17536 +++ tracvc/mtn/backend.py a14f49afc8c292e539e11bd31843019150418069 @@ -495,7 +495,7 @@ class MonotoneNode(Node): """ if self.isdir: return None - return StringIO(self.mtn.file(self.content_id)) + return StringIO(self.mtn.get_file(self.content_id)) def get_entries(self): """