contrib/tcsh_completion
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Sun, 06 Jun 2010 17:20:10 +0900
changeset 11297 d320e70442a5
parent 9638 8f8f9685ac5e
child 11445 4061205ad9e1
permissions -rw-r--r--
replace Python standard textwrap by MBCS sensitive one for i18n text Mercurial has problem around text wrapping/filling in MBCS encoding environment, because standard 'textwrap' module of Python can not treat it correctly. It splits byte sequence for one character into two lines. According to unicode specification, "east asian width" classifies characters into: W(ide), N(arrow), F(ull-width), H(alf-width), A(mbiguous) W/N/F/H can be always recognized as 2/1/2/1 bytes in byte sequence, but 'A' can not. Size of 'A' depends on language in which it is used. Unicode specification says: If the context(= language) cannot be established reliably they should be treated as narrow characters by default but many of class 'A' characters are full-width, at least, in Japanese environment. So, this patch treats class 'A' characters as full-width always for safety wrapping. This patch focuses only on MBCS safe-ness, not on writing/printing rule strict wrapping for each languages MBCS sensitive textwrap class is originally implemented by ITO Nobuaki <daydream.trippers@gmail.com>.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1156
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
     1
#
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
     2
# tcsh completion for Mercurial
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
     3
#
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
     4
# This file has been auto-generated by tcsh_completion_build.sh for
9638
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
     5
# Mercurial Distributed SCM (version 1.3.1+269-5d8125bbbbf4)
1156
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
     6
#
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
     7
# Copyright (C) 2005 TK Soh.
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
     8
#
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
     9
# This is free software; you can redistribute it and/or modify it under
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
    10
# the terms of the GNU General Public License as published by the Free
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
    11
# Software Foundation; either version 2 of the License, or (at your
1308
2073e5a71008 Cleanup of tabs and trailing spaces.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1264
diff changeset
    12
# option) any later version.
1156
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
    13
#
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
    14
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
    15
complete hg \
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
    16
  'n/--cwd/d/' 'n/-R/d/' 'n/--repository/d/' \
1158
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    17
  'C/-/( -R --repository \
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    18
    --cwd \
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    19
    -y --noninteractive \
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    20
    -q --quiet \
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    21
    -v --verbose \
7766
2b2548342265 Update tcsh completion scripts with new commands and for new help output.
Gilles Moris <gilles.moris@free.fr>
parents: 1308
diff changeset
    22
    --config \
1158
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    23
    --debug \
1264
be4a14bfaa9c Generated new tcsh_completion with tcsh_completion_build.sh
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1158
diff changeset
    24
    --debugger \
7766
2b2548342265 Update tcsh completion scripts with new commands and for new help output.
Gilles Moris <gilles.moris@free.fr>
parents: 1308
diff changeset
    25
    --encoding \
2b2548342265 Update tcsh completion scripts with new commands and for new help output.
Gilles Moris <gilles.moris@free.fr>
parents: 1308
diff changeset
    26
    --encodingmode \
1158
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    27
    --traceback \
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    28
    --time \
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    29
    --profile \
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    30
    --version \
4650ec7ef690 Regenerate tcsh_completion after bugfix in generator script
TK Soh <tksoh@freescale.com>
parents: 1156
diff changeset
    31
    -h --help)/' \
7766
2b2548342265 Update tcsh completion scripts with new commands and for new help output.
Gilles Moris <gilles.moris@free.fr>
parents: 1308
diff changeset
    32
  'p/1/(add addremove annotate blame archive \
2b2548342265 Update tcsh completion scripts with new commands and for new help output.
Gilles Moris <gilles.moris@free.fr>
parents: 1308
diff changeset
    33
    backout bisect branch branches bundle \
2b2548342265 Update tcsh completion scripts with new commands and for new help output.
Gilles Moris <gilles.moris@free.fr>
parents: 1308
diff changeset
    34
    cat clone commit ci copy \
9638
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    35
    cp debugancestor debugcheckstate debugcommands debugcomplete \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    36
    debugdata debugdate debugfsinfo debugindex debugindexdot \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    37
    debuginstall debugrebuildstate debugrename debugsetparents debugstate \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    38
    debugsub debugwalk diff export forget \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    39
    grep heads help identify id \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    40
    import patch incoming in init \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    41
    locate log history manifest merge \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    42
    outgoing out parents paths pull \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    43
    push recover remove rm rename \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    44
    mv resolve revert rollback root \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    45
    serve showconfig debugconfig status st \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    46
    summary sum tag tags tip \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    47
    unbundle update up checkout co \
8f8f9685ac5e update tcsh_completion for the new forget and summary commands
Gilles Moris <gilles.moris@free.fr>
parents: 7766
diff changeset
    48
    verify version)/'
1156
1d5996d39c9d Add tcsh_completion to contrib
TK Soh <teekaysoh@yahoo.com>
parents:
diff changeset
    49