(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:tcsh_file)
          op: Equal
          rhs: 
            {
              (BracedVarSub
                token: <VSub_Number 1>
                suffix_op: (StringUnary op_id:VTest_Hyphen arg_word:{(tcsh_completion)})
                spids: [102 106]
              )
            }
          spids: [101]
        )
      ]
      spids: [101]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:hg_commands)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (Pipeline
                        children: [
                          (C {(hg)} {(--debug)} {(help)})
                          (C {(sed)} {(-e)} {(SQ <'1,/^list of commands:/d'>)} {(-e)} 
                            {(SQ <'/^enabled extensions:/,$d'>)} {(-e)} {(SQ <'/^additional help topics:/,$d'>)} {(-e)} {(SQ <'/^ [^ ]/!d; s/[,:]//g;'>)}
                          )
                          (C {(xargs)} {(-n5)})
                          (C {(sed)} {(-e)} {(SQ <'$!s/$/ \\\\\\\\/g; 2,$s/^ */    /g'>)})
                        ]
                        negated: F
                      )
                    ]
                  )
                left_token: <Left_Backtick '`'>
                spids: [110 172]
              )
            }
          spids: [109]
        )
      ]
      spids: [109]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:hg_global_options)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (Pipeline
                        children: [
                          (C {(hg)} {(-v)} {(help)})
                          (C {(sed)} {(-e)} {(SQ <'1,/global/d;/^ *-/!d; s/ [^- ].*//'>)})
                          (C {(sed)} {(-e)} {(SQ <'s/ *$//; $!s/$/ \\\\\\\\/g; 2,$s/^ */    /g'>)})
                        ]
                        negated: F
                      )
                    ]
                  )
                left_token: <Left_Backtick '`'>
                spids: [176 206]
              )
            }
          spids: [175]
        )
      ]
      spids: [175]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:hg_version)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (Pipeline
                        children: [(C {(hg)} {(version)}) (C {(sed)} {(-e)} {(SQ <1q>)})]
                        negated: F
                      )
                    ]
                  )
                left_token: <Left_Backtick '`'>
                spids: [210 224]
              )
            }
          spids: [209]
        )
      ]
      spids: [209]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:script_name)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: (CommandList children:[(C {(basename)} {($ VSub_Number '$0')})])
                left_token: <Left_Backtick '`'>
                spids: [228 232]
              )
            }
          spids: [227]
        )
      ]
      spids: [227]
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir
          op_id: Redir_Great
          fd: 16777215
          arg_word: {($ VSub_Name '$tcsh_file')}
          spids: [237]
        )
        (HereDoc
          op_id: Redir_DLess
          fd: 16777215
          body: 
            {
              (DQ ('#\n') ('# tcsh completion for Mercurial\n') ('#\n') 
                ('# This file has been auto-generated by ') ($ VSub_Name '$script_name') (' for\n') ('# ') ($ VSub_Name '$hg_version') ('\n') ('#\n') 
                ('# Copyright (C) 2005 TK Soh.\n') ('#\n') ('# This is free software; you can redistribute it and/or modify it under\n') 
                ('# the terms of the GNU General Public License as published by the Free\n') ('# Software Foundation; either version 2 of the License, or (at your\n') 
                ('# option) any later version.\n') ('#\n') ('\n') ('complete hg ') (EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) ('\n') 
                ("  'n/--cwd/d/' 'n/-R/d/' 'n/--repository/d/' ") (EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) ('\n') ("  'C/-/(") 
                ($ VSub_Name '$hg_global_options') (")/' ") (EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) ('\n') ("  'p/1/(") 
                ($ VSub_Name '$hg_commands') (")/'\n") ('\n')
              )
            }
          do_expansion: True
          here_end: END
          was_filled: T
          spids: [241]
        )
      ]
    )
  ]
)