From 7addcc4aff8d391765b22d8f095afba739489511 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 13 Dec 2009 23:25:07 -0500 Subject: [PATCH] The VCS storage backends are all mostly working now. Running python test.py libbe.storage.vcs yields some EmptyCommit problems, an issue with bzr revision ids, and some trouble with git's remove(), but nothing too critical. On the bright side, now ./be list Detects and uses the bzr backend :). Onwards to moving over the remaining commands... --- libbe/storage/__init__.py | 3 +-- libbe/storage/vcs/base.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libbe/storage/__init__.py b/libbe/storage/__init__.py index 5d5b918..c58ec34 100644 --- a/libbe/storage/__init__.py +++ b/libbe/storage/__init__.py @@ -15,8 +15,7 @@ def get_storage(location): Return a Storage instance from a repo location string. """ import vcs - #s = vcs.detect_vcs(location) - s = vcs.vcs_by_name('None') + s = vcs.detect_vcs(location) s.repo = location return s diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py index 69e412e..a765a80 100644 --- a/libbe/storage/vcs/base.py +++ b/libbe/storage/vcs/base.py @@ -66,7 +66,6 @@ def _get_matching_vcs(matchfn): vcs = module.new() if matchfn(vcs) == True: return vcs - vcs.cleanup() return VCS() def vcs_by_name(vcs_name): -- 2.26.2