diff options
author | James Tunnicliffe <james.tunnicliffe@linaro.org> | 2012-08-23 19:33:00 +0100 |
---|---|---|
committer | James Tunnicliffe <james.tunnicliffe@linaro.org> | 2012-08-23 19:33:00 +0100 |
commit | aed0db69ae33e80f3a7fb9e1921f6cd04e2014ee (patch) | |
tree | 382048090e2d5fa75d542bac86676f213b2dccd0 /scripts | |
parent | a9364ab2502827633e06181ac8a218d7a3920d87 (diff) |
Even less bzrlib...
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update-deployment.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/scripts/update-deployment.py b/scripts/update-deployment.py index 161148d..f504e0b 100755 --- a/scripts/update-deployment.py +++ b/scripts/update-deployment.py @@ -34,8 +34,6 @@ staging.snapshots.linaro.org and staging.releases.linaro.org. """ -import bzrlib.branch -import bzrlib.workingtree import os import subprocess @@ -64,24 +62,7 @@ class UpdateDeploymentScript(LinaroScript): def refresh_branch(self, branch_dir): """Refreshes a branch checked-out to a branch_dir.""" - - code_branch = bzrlib.branch.Branch.open(branch_dir) - old_revno = code_branch.last_revision_info()[0] self.run_subcommand(["bzr", "pull"], branch_dir) - new_revno = code_branch.last_revision_info()[0] - - if old_revno != new_revno: - self.logger.info("Updated %s from %d to %d.", - branch_dir, old_revno, new_revno) - else: - self.logger.info( - "No changes to pull from %s.", code_branch.get_parent()) - self.logger.debug("Updating working tree in %s.", branch_dir) - self.update_tree(branch_dir) - return code_branch - - def update_tree(self, working_tree_dir): - """Does a checkout update.""" self.run_subcommand(["bzr", "up"], working_tree_dir) def run_subcommand(self, arguments, cwd=None): |