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