• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

修訂32790acbcf139ee9193033360a5643816326e2b9 (tree)
時間2010-08-27 00:27:41
作者Rick Copeland <rcopeland@geek...>
CommiterRick Copeland

Log Message

[#643] - change tool/mount point name, make fork code match forgegit

Change Summary

差異

--- a/ForgeHg/forgehg/hg_main.py
+++ b/ForgeHg/forgehg/hg_main.py
@@ -55,9 +55,9 @@ class ForgeHgApp(Application):
5555 ConfigOption('cloned_from_project_id', ObjectId, None),
5656 ConfigOption('cloned_from_repo_id', ObjectId, None)
5757 ]
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'
6161 ordinal=3
6262
6363 def __init__(self, project, config):
@@ -230,15 +230,17 @@ class RootController(BaseController):
230230 in_use=in_use,
231231 to_name=to_name or '')
232232 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))
233236 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))
237237 to_project.install_app(
238238 'Hg', to_name,
239239 cloned_from_project_id=from_project._id,
240240 cloned_from_repo_id=from_repo._id)
241241 redirect('/'+to_project_name+'/'+to_name+'/')
242+ except exc.HTTPRedirection:
243+ raise
242244 except Exception, ex:
243245 flash(str(ex), 'error')
244246 redirect(request.referer)