Move the 'Show unknown files' option to the menubar.
[hgct.git] / hct
blob0577f90787b9b05d74063b9df15fc10f10ed81c1
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