From f20f413421aed67fa982eb226098730d716114b6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 24 Nov 2012 22:01:13 +0800 Subject: [PATCH] Scm/Repo.js --- Scm/Repo.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Scm/Repo.js b/Scm/Repo.js index 9aaca615..9ccd4d1a 100644 --- a/Scm/Repo.js +++ b/Scm/Repo.js @@ -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; + +} -- 2.39.2