From: W. Trevor King Date: Mon, 14 Dec 2009 04:25:07 +0000 (-0500) Subject: The VCS storage backends are all mostly working now. X-Git-Tag: 1.0.0~59^2~52^2~65 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7addcc4aff8d391765b22d8f095afba739489511;p=be.git 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... --- 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):