def createProject( self, project ):
tm = self.table_view.table_model
self.all_visible_table_columns = (tm.col_status, tm.col_name, tm.col_date)
if shutil.which( hglib.HGPATH ) is None:
self.log.error( T_('Mercurial "hg" command line tool not found') )
return None
try:
return wb_hg_project.HgProject( self.app, project, self )
except hglib.error.ServerError as e:
self.app.log.error( T_('Failed to add Hg repo %s') % (project.path,) )
self.app.log.error( T_('hg error: %s') % (e,) )
return None
#------------------------------------------------------------
评论列表
文章目录