On Fri, 12 Jul 2002, Leif Hanack wrote: > hello, > > i have a simple question. i'm using wincvs 1.36 and wonder why i can not > find a recursive add command? ok, i can use the import module command but > therefore my new sources need to be outside the cvs controlled directory! > > but when i e.g. have a directory under controll called myproject > and when i want to add a new class com/foo/Foo.class it would be create > to select com and add the selection recursively?! > > is this possible?!
I did it in Meta-CVS. :) Of course, the problem you run into is that the directory may contain all kinds of files, some of which need to be treated as binary. WinCVS has a dialog box in its import GUI where can verify and change the disposition of each file. > when i want to write this functionality by myself. where do i start? should > i use tcl or python. are there tutorial concerning the integration in e.g. > wincvs?! For the sake of keeping the WinCVS program consistent, you would probably want to do it in that program, perhaps reusing the code which gathers up the file suffixes and throws them into a dialog box. I do a similar thing in Meta-CVS; both the create command for makign a new module, and the add command interactively deal with file types. Now the problem is that cvs import and cvs add do not have the same interface for specifying keyword modes. In import, you specify a wildcard match on file suffixes, allowing you to express the idea that all *.png files are to be treated -kb. In cvs add, you do not have this; the keyword expansion mode you specify applies to all file arguments. In Meta-CVS the problem is solved by collating all of the files into buckets based on their expansion mode, and then issue a cvs add command (or several, if the command line is too long) for each bucket. -- Meta-CVS: solid version control tool with directory structure versioning. http://users.footprints.net/~kaz/mcvs.html http://freshmeat.net/projects/mcvs _______________________________________________ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
