[Python-checkins] CVS: python/dist/src/PCbuild
installer.bmp,NONE,1.2.18.1 python20.wse,1.39.2.2,1.39.2.3
Sjoerd Mullender
sjoerd@acm.org
Sat, 12 Jan 2002 13:40:31 +0100
"Fred L. Drake, Jr." wrote:
>
> Guido van Rossum writes:
> > I guess -kb is a per-revision or per-branch property.
>
> Its behavior actually makes sense if we consider that each "cvs add"
> represents a different logical file; that they share a name isn't
> actually important. Since -kb is sticky, a new revision of a file
> gets it if the previous revision had it. Since CVS doesn't assume
> anything based on the file extension (like binary-ness), it has to be
> specified for each "cvs add" of a binary file.
It's true that CVS doesn't assume anything based on file extensions, but it
can easily made to be not true.
In the CVSROOT directory there is a file cvswrappers where you can specify
things like, if the file name matches *.bmp, add the -kb flag automatically.
Look at the example in the file.
Since the patterns are standard UNIX shell patterns, you may want to do
something for case insensitivity.
Here's a list that I use in a different project.
Some files are specified with -ko (or -k 'o') since they're not binary files,
but you don't want CVS muciking with any $-escapes in them.
*.[aA][iI][fF] -m 'COPY' -k 'b'
*.[aA][iI][fF][cC] -m 'COPY' -k 'b'
*.[aA][iI][fF][fF] -m 'COPY' -k 'b'
*.[aA][sS][fF] -m 'COPY' -k 'b'
*.[aA][uU] -m 'COPY' -k 'b'
*.[aA][vV][iI] -m 'COPY' -k 'b'
*.[bB][iI][nN] -m 'COPY' -k 'b'
*.[bB][mM][pP] -m 'COPY' -k 'b'
*.[cC][dD][mM] -m 'COPY' -k 'o'
*.[dD][lL][sS] -m 'COPY' -k 'o'
*.[dD][sS][pP] -m 'COPY' -k 'o'
*.[dD][sS][kK] -m 'COPY' -k 'o'
*.[eE][xX][eE] -m 'COPY' -k 'b'
*.[gG][iI][fF] -m 'COPY' -k 'b'
*.[gG][zZ] -m 'COPY' -k 'b'
*.[hH][qQ][zZ] -m 'COPY' -k 'o'
*.[iI][cC][oO] -m 'COPY' -k 'b'
*.[jJ][pP][gG] -m 'COPY' -k 'b'
*.[lL][iI][bB] -m 'COPY' -k 'b'
*.[mM][dD][pP] -m 'COPY' -k 'b'
*.[mM][iI][dD] -m 'COPY' -k 'b'
*.[mM][pP][aA] -m 'COPY' -k 'b'
*.[mM][pP]3 -m 'COPY' -k 'b'
*.[mM][pP][gG] -m 'COPY' -k 'b'
*.[oO][pP][tT] -m 'COPY' -k 'b'
*.[pP][dD][fF] -m 'COPY' -k 'b'
*.[pP][nN][gG] -m 'COPY' -k 'b'
*.[pP][rR][jJ] -m 'COPY' -k 'b'
*.[pP][sS][dD] -m 'COPY' -k 'b'
*.[pP][yY][dD] -m 'COPY' -k 'b'
*.[qQ][tT] -m 'COPY' -k 'b'
*.[rR][aA] -m 'COPY' -k 'b'
*.[rR][aA][mM] -m 'COPY' -k 'o'
*.[rR][gG][bB] -m 'COPY' -k 'b'
*.[rR][mM] -m 'COPY' -k 'b'
*.[rR][sS][rR][cC] -m 'COPY' -k 'b'
*.[rR][vV] -m 'COPY' -k 'b'
*.[sS][iI][tT] -m 'COPY' -k 'b'
*.[sS][tT][yY] -m 'COPY' -k 'b'
*.[sS][gG][tT] -m 'COPY' -k 'b'
*.[sS][wW][fF] -m 'COPY' -k 'b'
*.[tT][iI][fF] -m 'COPY' -k 'b'
*.[tT][iI][fF][fF] -m 'COPY' -k 'b'
*.[wW][aA][vV] -m 'COPY' -k 'b'
*.[wW][sS][eE] -m 'COPY' -k 'o'
*.[zZ][iI][pP] -m 'COPY' -k 'b'