This is what I'm trying to do:
I'm generating a .diff file with a custom utility I've written. I let the user add any path or file to a list that I eventually run the "cvs diff" command on.
The following is a sample output:
Index: .project
RCS file: /cvs/test/.project,v
retrieving revision 1.2
diff -u -r1.2 .project
--- .project 22 Jan 2004 18:28:31 -0000 1.2
+++ .project 23 Jan 2004 22:54:15 -0000
@@ -7,6 +7,11 @@
+   <name></name>
+   <arguments>
+   </arguments>
+  </buildCommand>
+  <buildCommand>
@@ -14,5 +19,6 @@
+  <nature></nature>
Index: .checkstyle
<?xml version="1.0" encoding="UTF-8"?>
<fileset-config file-format-version="1.0.0">
    <fileset name="Test" enabled="true" check-config-name="TestCodeStyle">
        <file-match-pattern match-pattern="[.java]$" include-pattern="true"/>
I am trying to include new files (not added to the CVS repository yet), as well as committed files to a topic.
The .project file is a committed file that has changes.
The .checkstyle file is a new file that is unknown to CVS. (I'm obviously experimenting with what syntax to create above. :)
The complete contents of the new file would come under the
Index: <filename>
Is there a way to include a new file in a diff file to upload when creating a new topic? Then, all files
This e-mail may contain privileged or confidential material intended for the named recipient only.
If you are not the named recipient, delete this message and all attachments.
Unauthorized reviewing, copying, printing, disclosing, or otherwise using information in this e-mail is prohibited.
We reserve the right to monitor e-mail sent through our network.