diff rhodecode/lib/paster_commands/repo_scan.py @ 3915:a42bfe8a9335 beta

moved make-index command to paster_commands module - optimized imports and code
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 30 May 2013 00:01:16 +0200
parents f1491bad8339
children b58ed6d608cc
line wrap: on
line diff
--- a/rhodecode/lib/paster_commands/repo_scan.py	Wed May 29 12:13:02 2013 +0200
+++ b/rhodecode/lib/paster_commands/repo_scan.py	Thu May 30 00:01:16 2013 +0200
@@ -29,17 +29,13 @@
 import sys
 import logging
 
-from os.path import dirname as dn, join as jn
 from rhodecode.model.scm import ScmModel
-#to get the rhodecode import
+from rhodecode.lib.utils import BasePasterCommand, repo2db_mapper
+
+# fix rhodecode import
+from os.path import dirname as dn
 rc_path = dn(dn(dn(os.path.realpath(__file__))))
 sys.path.append(rc_path)
-from rhodecode.lib.utils import BasePasterCommand, repo2db_mapper
-
-from rhodecode.model.db import Repository
-from rhodecode.model.repo import RepoModel
-from rhodecode.model.meta import Session
-
 
 log = logging.getLogger(__name__)