"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'
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4