info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cvswrappers -f/-t


From: Magnus Sandberg
Subject: cvswrappers -f/-t
Date: 23 May 2003 14:54:37 +0200

Hi I tried to use cvswappers with -f/-t using various pre-compiled
packages of cvs but failed. After reading a bit on the subject I
checkout the current cvs version.

$ cvs version
Concurrent Versions System (CVS) 1.12.0.1 (client/server)

and patched wrapper.c and checkin.c as below.

I'm planning to use this to force formatting of files going
in/out of cvs using something like this:

# cat cvswrappers
*.java -f 'jalopy %s' -t 'jalopy %s %s'

for java files.

I have tested this and it seems to work just fine.

Can anyone see any risks in using this?

Thanks

/Magnus


# cvs diff src/checkin.c src/wrapper.c
Index: src/checkin.c
===================================================================
RCS file: /cvs/ccvs/src/checkin.c,v
retrieving revision 1.42
diff -r1.42 checkin.c
53c53
<           rename_file (tocvsPath, finfo->file);
---
>           copy_file (tocvsPath, finfo->file);
Index: src/wrapper.c
===================================================================
RCS file: /cvs/ccvs/src/wrapper.c,v
retrieving revision 1.31
diff -r1.31 wrapper.c
400,401c400,402
<           error (1, 0,
<                  "-t/-f wrappers not supported by this version of
CVS");
---
>         //EMSA:
>         //        error (1, 0,
>         //       "-t/-f wrappers not supported by this version of
CVS");
414,415c415,417
<           error (1, 0,
<                  "-t/-f wrappers not supported by this version of
CVS");
---
>         // EMSA:
>         //  error (1, 0,
>         //       "-t/-f wrappers not supported by this version of
CVS");



-- 
Magnus Sandberg <address@hidden>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]