+ def _add_file(self, path, value):
+ return self.repo.wwrite(path, value.encode('utf-8'), [])
+# f = codecs.open(os.path.join(self.real_path, path), 'w', encoding='utf-8')
+# f.write(value)
+# f.close()
+# if path not in self._pending_files:
+# self._pending_files.append(path)
+
+ def _commit(self, message, user=None, key=None):
+ return self.repo.commit(text=message, user=user)