cmd = bzrlib.builtins.cmd_root()
cmd.outf = StringIO.StringIO()
cmd.run(filename=path)
- if self.version_cmp(2,3,0) < 0:
+ if self.version_cmp(2,2,0) < 0:
cmd.cleanup_now()
return cmd.outf.getvalue().rstrip('\n')
cmd = bzrlib.builtins.cmd_init()
cmd.outf = StringIO.StringIO()
cmd.run(location=path)
- if self.version_cmp(2,3,0) < 0:
+ if self.version_cmp(2,2,0) < 0:
cmd.cleanup_now()
def _vcs_destroy(self):
cmd = bzrlib.builtins.cmd_add()
cmd.outf = StringIO.StringIO()
cmd.run(file_list=[path], file_ids_from=self.repo)
- if self.version_cmp(2,3,0) < 0:
+ if self.version_cmp(2,2,0) < 0:
cmd.cleanup_now()
def _vcs_exists(self, path, revision=None):
cmd = bzrlib.builtins.cmd_remove()
cmd.outf = StringIO.StringIO()
cmd.run(file_list=[path], file_deletion_strategy='force')
- if self.version_cmp(2,3,0) < 0:
+ if self.version_cmp(2,2,0) < 0:
cmd.cleanup_now()
def _vcs_update(self, path):
if self.version_cmp(2,0,0) < 0:
cmd.outf = sys.stdout
sys.stdout = stdout
- if self.version_cmp(2,3,0) < 0:
+ if self.version_cmp(2,2,0) < 0:
cmd.cleanup_now()
return cmd.outf.getvalue()
raise base.InvalidPath(path, root=self.repo, revision=revision)
raise
finally:
- if self.version_cmp(2,3,0) < 0:
+ if self.version_cmp(2,2,0) < 0:
cmd.cleanup_now()
children = cmd.outf.getvalue().rstrip('\n').splitlines()
children = [self._u_rel_path(c, path) for c in children]
raise
finally:
os.chdir(cwd)
- if self.version_cmp(2,3,0) < 0:
+ if self.version_cmp(2,2,0) < 0:
cmd.cleanup_now()
return self._vcs_revision_id(-1)
cmd = bzrlib.builtins.cmd_revno()
cmd.outf = StringIO.StringIO()
cmd.run(location=self.repo)
- if self.version_cmp(2,3,0) < 0:
+ if self.version_cmp(2,2,0) < 0:
cmd.cleanup_now()
current_revision = int(cmd.outf.getvalue())
if index > current_revision or index < -current_revision:
status = cmd.run(revision=revision, file_list=[self.repo])
finally:
sys.stdout = stdout
- if self.version_cmp(2,3,0) < 0:
+ if self.version_cmp(2,2,0) < 0:
cmd.cleanup_now()
assert status in [0,1], "Invalid status %d" % status
return cmd.outf.getvalue()