From b1ba65415fc74e8bd25ed1f4cf0370e213f4c20d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 22 Feb 2011 18:54:57 -0500 Subject: Correct version for recent bzrlib fix. Rather than guessing from the output of `bzr tags`, I actually looked in the realease notes and tracked the removal of run_direct() to 2.2b2, which is confirmed by the r5146 patch itself: bzr.dev $ ./bzr log -p -n 0 -r 5146 | grep -1 deprec + + @deprecated_method(deprecated_in((2, 2, 0))) def run_direct(self, *args, **kwargs): -- + + @deprecated_method(deprecated_in((2, 2, 0))) def run_direct(self, *args, **kwargs): --- libbe/storage/vcs/bzr.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libbe/storage/vcs') diff --git a/libbe/storage/vcs/bzr.py b/libbe/storage/vcs/bzr.py index f426612..a00e3ac 100644 --- a/libbe/storage/vcs/bzr.py +++ b/libbe/storage/vcs/bzr.py @@ -136,7 +136,7 @@ class Bzr(base.VCS): 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') @@ -144,7 +144,7 @@ class Bzr(base.VCS): 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): @@ -157,7 +157,7 @@ class Bzr(base.VCS): 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): @@ -173,7 +173,7 @@ class Bzr(base.VCS): 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): @@ -210,7 +210,7 @@ class Bzr(base.VCS): 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() @@ -247,7 +247,7 @@ class Bzr(base.VCS): 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] @@ -270,7 +270,7 @@ class Bzr(base.VCS): 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) @@ -278,7 +278,7 @@ class Bzr(base.VCS): 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: @@ -298,7 +298,7 @@ class Bzr(base.VCS): 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() -- cgit