##// END OF EJS Templates
fixed python2.5 compat and repo mapper issue
marcink -
r2620:cd207411 beta
parent child Browse files
Show More
@@ -450,8 +450,8 b' def repo2db_mapper(initial_repo_list, re'
450
450
451 for name, repo in initial_repo_list.items():
451 for name, repo in initial_repo_list.items():
452 group = map_groups(name)
452 group = map_groups(name)
453 repo = rm.get_by_repo_name(name)
453 db_repo = rm.get_by_repo_name(name)
454 if not repo:
454 if not db_repo:
455 log.info('repository %s not found creating now' % name)
455 log.info('repository %s not found creating now' % name)
456 added.append(name)
456 added.append(name)
457 desc = (repo.description
457 desc = (repo.description
@@ -466,8 +466,8 b' def repo2db_mapper(initial_repo_list, re'
466 just_db=True
466 just_db=True
467 )
467 )
468 elif install_git_hook:
468 elif install_git_hook:
469 if repo.repo_type == 'git':
469 if db_repo.repo_type == 'git':
470 ScmModel().install_git_hook(repo.scm_instance)
470 ScmModel().install_git_hook(db_repo.scm_instance)
471 sa.commit()
471 sa.commit()
472 removed = []
472 removed = []
473 if remove_obsolete:
473 if remove_obsolete:
@@ -22,6 +22,7 b''
22 #
22 #
23 # You should have received a copy of the GNU General Public License
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 from __future__ import with_statement
25 import os
26 import os
26 import re
27 import re
27 import time
28 import time
General Comments 0
You need to be logged in to leave comments. Login now