The VCS storage backends are all mostly working now.
authorW. Trevor King <wking@drexel.edu>
Mon, 14 Dec 2009 04:25:07 +0000 (23:25 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 14 Dec 2009 04:25:07 +0000 (23:25 -0500)
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
libbe/storage/vcs/base.py

index 5d5b91862dd140c2242a1d96f039ae8c656deab5..c58ec34d1f70c49350d2e287dcf2fb9ce183ef85 100644 (file)
@@ -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
 
index 69e412eaaac8df8f2dc9b0785107f7f15be154e0..a765a8073fc3e2d43e36c7de5006aef1be73cf7a 100644 (file)
@@ -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):