list_repos should list all

This commit is contained in:
Faik Uygur
2009-06-09 06:23:38 +00:00
parent c9644217ab
commit 986a4ac3a6
+5 -4
View File
@@ -36,7 +36,8 @@ Lists currently tracked repositories.
def run(self):
self.init(database = True, write = False)
for repo in self.repodb.list_repos():
ctx.ui.info(repo)
#FIXME: repodb.get_repo(repo).indexuri.get_uri()??? ick!
print ' ', self.repodb.get_repo(repo).indexuri.get_uri()
for repo in self.repodb.list_repos(only_active=False):
active = _("active") if self.repodb.repo_active(repo) else _("deactive")
ctx.ui.info("%s [%s]" % (repo, active))
print ' ', self.repodb.get_repo_url(repo)