3 # hct - hg extension for invoking the (h)gct commit tool
5 # This is currently very simple but allows the (h)gct commit tool to
6 # integrate with the hg commandline interface. By default, the hgct
7 # command should be in the user's path. Edit the HGCT_PATH variable
8 # to manually specify a different path.
10 # To enable this extension, add a line like the following to the
11 # extensions section in your .hgrc file:
17 # Invoke the commit tool with the "hg ct" command. It will appear in
25 def invoke_hgct(ui
, repo
):
26 """Run hgct commit tool"""
29 status
= os
.system(HGCT_PATH
+ " --one-shot")
32 print "Error invoking hgct commit tool"
34 cmdtable
= { 'ct' : (invoke_hgct
, [], 'hg ct') }
36 def reposetup(ui
, repo
):