You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2011/06/15 18:58:40 UTC
DO NOT REPLY [Bug 51381] New: CVS Task checks out files that did not
exist for a given tag of the module
https://issues.apache.org/bugzilla/show_bug.cgi?id=51381
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
AssignedTo: notifications@ant.apache.org
ReportedBy: ck1234@ilford.com
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>
<target name="UpdateSource">
<cvspass cvsroot=":pserver:casec@chmsjavadev:/Ilfotec"
password="gocasec"/>
<cvs command="checkout -f"
cvsRoot=":pserver:casec@chmsjavadev:/Ilfotec" dest="c:/temp/CVSTest" tag="V1-0"
package="${modulename}" quiet="false" />
</target>
<target depends="Init" name="UpdateSourceTree">
<antcall target="UpdateSource"> <param name="modulename" value="CVSBug"/>
</antcall>
</target>
</project>
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.
Chris
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51381] CVS Task checks out files that did not
exist for a given tag of the module
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51381
Christian Knecht <ck...@ilford.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #4 from Christian Knecht <ck...@ilford.com> 2011-06-15 20:42:46 UTC ---
It could even be completely deleted as it is not relevant at all.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51381] CVS Task checks out files that did not
exist for a given tag of the module
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51381
Christian Knecht <ck...@ilford.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version| |All
--- Comment #1 from Christian Knecht <ck...@ilford.com> 2011-06-15 17:58:11 UTC ---
The problem has been tested and reproduced consitently with the following
configuration:
- CVS Server : CVSNT 2.5.03 (2005) running Windows Server 2003
- CVS Client : Concurrent Versions System (CVS) 1.11.22 (client)
- Ant version 1.8.2, 1.8.1, 1.6.2 : all show the same problem
- CVS connection string: =:pserver:casec@chmsjavadev:/Ilfotec
Note: Eclipse's standard CVS Plug-in is working as expected (does not exhiit
the problem).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51381] CVS Task checks out files that did not
exist for a given tag of the module
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51381
Christian Knecht <ck...@ilford.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from Christian Knecht <ck...@ilford.com> 2011-06-15 19:32:06 UTC ---
Sorry, this is not a bug. The solution is in the problem desction: the -f flag
was present in the ant-script.
We can close this (which I had never opened it!) :-)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51381] CVS Task checks out files that did not
exist for a given tag of the module
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51381
--- Comment #2 from Christian Knecht <ck...@ilford.com> 2011-06-15 19:15:33 UTC ---
If found that the problem comes from the fact that ant uses the -f option on
the checkout comment of cvs which has precisely the effect I observe.
Is it possible to control this -f flag? Why is it set?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.