contrib/tcsh_completion
author Maxim Dounin <mdounin@mdounin.ru>
Wed, 07 May 2008 14:32:00 +0400
changeset 6651 7f0dd352fb4d
parent 1308 2073e5a71008
child 7766 2b2548342265
permissions -rw-r--r--
addremove: correctly handle intermediate symlinks This fixes problems mentioned in issue660 comments (unrelated to original issue) where directory was renamed, and symlink was added instead. In such situation addremove wasn't able to correctly detect that old files no longer here, but tried to add symlink (and failed due collision with old files).

#
# tcsh completion for Mercurial
#
# This file has been auto-generated by tcsh_completion_build.sh for
# Mercurial Distributed SCM (version 325c07fd2ebd)
#
# Copyright (C) 2005 TK Soh.
#
# This is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#

complete hg \
  'n/--cwd/d/' 'n/-R/d/' 'n/--repository/d/' \
  'C/-/( -R --repository \
    --cwd \
    -y --noninteractive \
    -q --quiet \
    -v --verbose \
    --debug \
    --debugger \
    --traceback \
    --time \
    --profile \
    --version \
    -h --help)/' \
  'p/1/(add addremove annotate bundle cat \
    clone commit ci copy cp \
    debugancestor debugcheckstate debugconfig debugdata debugindex \
    debugindexdot debugrename debugstate debugwalk diff \
    export forget grep heads help \
    identify id import patch incoming \
    in init locate log history \
    manifest outgoing out parents paths \
    pull push rawcommit recover remove \
    rm rename mv revert root \
    serve status tag tags tip \
    unbundle undo update up checkout \
    co verify version)/'