allura
修訂 | 32790acbcf139ee9193033360a5643816326e2b9 (tree) |
---|---|
時間 | 2010-08-27 00:27:41 |
作者 | Rick Copeland <rcopeland@geek...> |
Commiter | Rick Copeland |
[#643] - change tool/mount point name, make fork code match forgegit
@@ -55,9 +55,9 @@ class ForgeHgApp(Application): | ||
55 | 55 | ConfigOption('cloned_from_project_id', ObjectId, None), |
56 | 56 | ConfigOption('cloned_from_repo_id', ObjectId, None) |
57 | 57 | ] |
58 | - tool_label='Hg' | |
59 | - default_mount_label='Hg' | |
60 | - default_mount_point='hg1' | |
58 | + tool_label='Mercurial' | |
59 | + default_mount_label='Mercurial' | |
60 | + default_mount_point='mercurial' | |
61 | 61 | ordinal=3 |
62 | 62 | |
63 | 63 | def __init__(self, project, config): |
@@ -230,15 +230,17 @@ class RootController(BaseController): | ||
230 | 230 | in_use=in_use, |
231 | 231 | to_name=to_name or '') |
232 | 232 | else: |
233 | + if not to_project.database_configured: | |
234 | + to_project.configure_project_database(is_user_project=True) | |
235 | + require(has_project_access('tool', to_project)) | |
233 | 236 | try: |
234 | - if not to_project.database_configured: | |
235 | - to_project.configure_project_database(is_user_project=True) | |
236 | - require(has_project_access('tool', to_project)) | |
237 | 237 | to_project.install_app( |
238 | 238 | 'Hg', to_name, |
239 | 239 | cloned_from_project_id=from_project._id, |
240 | 240 | cloned_from_repo_id=from_repo._id) |
241 | 241 | redirect('/'+to_project_name+'/'+to_name+'/') |
242 | + except exc.HTTPRedirection: | |
243 | + raise | |
242 | 244 | except Exception, ex: |
243 | 245 | flash(str(ex), 'error') |
244 | 246 | redirect(request.referer) |