ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51381] New: CVS Task checks out files that did not exist for a given tag of the module
Date Wed, 15 Jun 2011 16:58:40 GMT

             Bug #: 51381
           Summary: CVS Task checks out files that did not exist for a
                    given tag of the module
           Product: Ant
           Version: 1.8.2
          Platform: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
    Classification: Unclassified

When checking out the files of a CVS module for a given tag, files that do not
have the requested tag are checked out (not sure which revision of the file as
in my test I had a single revision of those files).

Examples :

We start with an empty CVS Module called CVSBug.
The, through the command line, we add a file, commit it, tag the module, add
another file, commit it and tag the module:

cvs add file1.txt
cvs commit file1.txt
cvs tag V1-0
cvs add file2.txt
cvs commit file2.txt
cvs tag V1-1

Now, we delete the directy. If checking out using direct CVS commands we get:
cvs -r V1-1 checkout CVSBug  #This retrieves both file1.txt and file2.txt
cvs -r V1-0 checkout CVSBug  #This retrieves only file1.txt

This behaviour is the expected behaviour.

With the following ant bellow we get the same result for V1-1 but for V1-0 we
also get both files which is incorrect.

The script used for the test is:

<?xml version="1.0" encoding="UTF-8"?>
<project default="UpdateSourceTree" name="UpdateSourceTree">
    <target name="Init">
    <target name="UpdateSource">
        <cvspass cvsroot=":pserver:casec@chmsjavadev:/Ilfotec"
        <cvs command="checkout -f"
cvsRoot=":pserver:casec@chmsjavadev:/Ilfotec" dest="c:/temp/CVSTest" tag="V1-0"
package="${modulename}" quiet="false" />

    <target depends="Init" name="UpdateSourceTree">
      <antcall target="UpdateSource"> <param name="modulename" value="CVSBug"/>

If this is not a misunderstanding of how to use the cvs-task, then this is a
major bug.

Many thanks for looking into this.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message