Scm/Repo.js
authorAlan Knowles <alan@roojs.com>
Sat, 24 Nov 2012 14:01:13 +0000 (22:01 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 24 Nov 2012 14:01:13 +0000 (22:01 +0800)
Scm/Repo.js

index 9aaca61..9ccd4d1 100644 (file)
@@ -324,4 +324,15 @@ Repo.list = function()
     return Repo._list;
       
 }
-
+Repo.get = function(path)
+{
+    var tr = Repo.list();
+    for (var i =0;i < tr.length; i++) {
+        if (tr[i].repopath == path) {
+            return tr[i];
+        }
+        
+    }
+    return false;
+    
+}