(command.CommandList
  children: [
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:test_description spids:[12])
          op: Equal
          rhs: {(SQ <'test dwim of revs versus pathspecs in revision parser'>)}
          spids: [12]
        )
      ]
      spids: [12]
    )
    (C {(.)} {(./test-lib.sh)})
    (C {(test_expect_success)} {(SQ <setup>)} 
      {
        (SQ <'\n'> <'\ttest_commit base &&\n'> <'\techo content >"br[ack]ets" &&\n'> 
          <'\tgit add . &&\n'> <'\ttest_tick &&\n'> <'\tgit commit -m brackets\n'>
        )
      }
    )
    (C {(test_expect_success)} {(SQ <'non-rev wildcard dwims to pathspec'>)} 
      {
        (SQ <'\n'> <'\tgit log -- "*.t" >expect &&\n'> <'\tgit log    "*.t" >actual &&\n'> 
          <'\ttest_cmp expect actual\n'>
        )
      }
    )
    (C {(test_expect_success)} {(SQ <'tree:path with metacharacters dwims to rev'>)} 
      {
        (SQ <'\n'> <'\tgit show "HEAD:br[ack]ets" -- >expect &&\n'> 
          <'\tgit show "HEAD:br[ack]ets"    >actual &&\n'> <'\ttest_cmp expect actual\n'>
        )
      }
    )
    (C {(test_expect_success)} {(SQ <'^{foo} with metacharacters dwims to rev'>)} 
      {
        (SQ <'\n'> <'\tgit log "HEAD^{/b.*}" -- >expect &&\n'> 
          <'\tgit log "HEAD^{/b.*}"    >actual &&\n'> <'\ttest_cmp expect actual\n'>
        )
      }
    )
    (C {(test_expect_success)} {(SQ <'@{foo} with metacharacters dwims to rev'>)} 
      {
        (SQ <'\n'> <'\tgit log "HEAD@{now [or thereabouts]}" -- >expect &&\n'> 
          <'\tgit log "HEAD@{now [or thereabouts]}"    >actual &&\n'> <'\ttest_cmp expect actual\n'>
        )
      }
    )
    (C {(test_expect_success)} {(SQ <':/*.t from a subdir dwims to a pathspec'>)} 
      {
        (SQ <'\n'> <'\tmkdir subdir &&\n'> <'\t(\n'> <'\t\tcd subdir &&\n'> 
          <'\t\tgit log -- ":/*.t" >expect &&\n'> <'\t\tgit log    ":/*.t" >actual &&\n'> <'\t\ttest_cmp expect actual\n'> <'\t)\n'>
        )
      }
    )
    (C {(test_done)})
  ]
)