Fix typo in interpreter path
[hgct.git] / hct
blob0afa5e18af50c0543b721caf27d0b4ce04aaef32
1 #!/usr/bin/env python
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:
13 # [extensions]
14 # ...
15 # hct = /path/to/hct
17 # Invoke the commit tool with the "hg ct" command. It will appear in
18 # hg help as normal.
21 HGCT_PATH = "hgct"
23 import os
25 def invoke_hgct(ui, repo):
26 """Run hgct commit tool"""
28 os.chdir(repo.root)
29 status = os.system(HGCT_PATH + " --one-shot")
31 if status is not 0:
32 print "Error invoking hgct commit tool"
34 cmdtable = { 'ct' : (invoke_hgct, [], 'hg ct') }
36 def reposetup(ui, repo):
37 pass