Annotate of Log output wrong
in respect to keyword. The user does not really modify the line that has the keyword. It is the CVS system that modifies it by expanding the keyword. And apparently the local file is modified (in the sense the new revision information is reflected) as the user sees it. On the other hand, the ,v file is not modified (but because cederqvist is silent on that, it can be changed in future release). Nevertheless, cederqvist is talking about each line in the source file (i.e. the local file) not the ,v file - annotate is not printing revision info on each line of the ,v file, it prints revision info on each line of the source file. So I guess it is reasonable to assume that he modification is in respect to the source file. As it meets the eyes of the user, the source file contains a line that is different from the last version of the source file, that in my opinion would constitute a modification. The user may not even know how keyword substitution works. He just checks out a copy from the repository that has a line $Date: 2005/07/12 02:32:17 $ in it, and after he modifies and commits, he finds out the line changes to $Date: 2005/07/12 03:10:28 $. To him, that is a modification alright. And since annotate prints out information on the last modification for each line, he should reasonably expect 03:10:28 be printed. Therefore I think the actual behavior of the annotate command is inconsistent with what is described in the manual. Either the program or the documentation has a bug. 5. Larry Jones says the $Log$ keyword (not command) is expanded by checkout/update. For the record, the annotate output is not affected by update: [EMAIL PROTECTED] cvs update cvs update: Updating . [EMAIL PROTECTED] cvs annotate Annotations for compiler.c *** 1.3 (mingl12-Jul-05): $Id: compiler.c,v 1.2 2005/07/12 02:32:17 mingl Exp $ 1.3 (mingl12-Jul-05): this is $Date: 2005/07/12 02:32:17 $ 1.2 (mingl12-Jul-05): $Log: compiler.c,v $ 1.3 (mingl12-Jul-05): Revision 1.2 2005/07/12 02:32:17 mingl 1.3 (mingl12-Jul-05): third commit 1.3 (mingl12-Jul-05): 1.2 (mingl12-Jul-05): Revision 1.1.1.1 2005/07/07 00:05:26 mingl 1.2 (mingl12-Jul-05): init import The update command does NOT do keyword expansion in the ,v file: 1.3 log @this is my log ha ha ha @ text @$Id: compiler.c,v 1.2 2005/07/12 02:32:17 mingl Exp $ this is $Date: 2005/07/12 02:32:17 $ this is a file $Log: compiler.c,v $ Revision 1.2 2005/07/12 02:32:17 mingl third commit A cvs checkout does not reflect the new revision info either. - Ming Kin Lai _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
RE: Annotate of Log output wrong
As a comparison, cvs diff considers the source file modified for the keyword expansion. That is, $ cvs diff -r 1.3 -1.2 retrieving revision 1.3 retrieving revision 1.2 diff -r1.3 -r1.2 1,2c1,2 $Id: compiler.c,v 1.3 2005/07/12 03:10:28 mingl Exp $ this is $Date: 2005/07/12 03:10:28 $ --- $Id: compiler.c,v 1.2 2005/07/12 02:32:17 mingl Exp $ this is $Date: 2005/07/12 02:32:17 $ 5,7d4 Revision 1.3 2005/07/12 03:10:28 mingl this is my log ha ha ha In this case, the ,v file actually not modified explanation would not work. CVS does not really determine its behavior, as seen by teh user, on what the contents of the ,v file is. _ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Inaccurate documentation re cvs tag
Sec 4.5 of 1.11.20 cederqvist says: running the cvs tag command without arguments causes CVS to select the revisions which are checked out in the current working directory. ... One potentially aspect of the fact that cvs tag operates on the repository is that you are tagging the checked-in revisions, which may differ from locally modified files ... I think it is somewhat confusing, especially to new users. At first it talks about a checked-out revision, then it talks about a checked-in revision. Well, I understand they mean the same, at least in some cases; but it is not quite accurate and probably confusing. 1. The problem with checked out is that it does not literally mean checked out. Suppose I check out a file with revision 1.1, modify it and commit it, so now I have revision 1.2 in my working directory. I run cvs tag. And 1.2 gets tagged. Literally 1.1 is the revision I checked out. I did not check out 1.2, unless commit implies check out - but I think it's better separate them; after all ci and co are two different commands. Also, stating that a checked-out version is tagged may give the wrong impression that the user (unnecessarily) needs to do a cvs co before tagging. 2. The problem with checked in is that there may not be any check-in (cvs ci). Suppose I check out a file for the first time and without modifying it, run cvs tag. The one and only one revision gets tagged; but there is never any check-in. Stating that a checked-in revision is tagged may give the wrong impression that the user (unnecessarily) needs to do a cvs ci before tagging. Anyone agrees or disagrees? Incidentally, the entry for tag in Appendix B (page 132) says Add a symbolic tag to checked out version. I think checked out need to be re-worded, and version probably should be revision. Finally there are a number of places in cederqvist that use the phase checked out. I am not sure all mean literally checked out. For example, Sec 1.3.4 says diff compare[s] the version (revision?) of driver.c that you checked out with your working copy. Again, suppose I check out a file with revision 1.1, modify it and commit it, so now I have revision 1.2 in my working directory. I run cvs diff. There is no difference. The comparison is NOT between 1.1 (the last revision I checked out (using cvs co)) and 1.2. I think the phase checked out should be used with care. Ming Kin Lai _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Re: Inaccurate documentation re cvs tag
Sec 4.5 of 1.11.20 cederqvist says: running the cvs tag command without arguments causes CVS to select the revisions which are checked out in the current working directory. ... One potentially aspect of the fact that cvs tag operates on the repository is that you are tagging the checked-in revisions, which may differ from locally modified files ... I think it is somewhat confusing, especially to new users. At first it talks about a checked-out revision, then it talks about a checked-in revision. Well, I understand they mean the same, at least in some cases; but it is not quite accurate and probably confusing. 1. The problem with checked out is that it does not literally mean checked out. Actually it does literally mean the version which was checked out, not what you currently have (i.e., not possible local mods). Apparently you and I have disagreement about what literally means means. Suppose I check out a file with revision 1.1, modify it and commit it, so now I have revision 1.2 in my working directory. Well this commit does do essentially a checkout (actually update, which is why things like $Log:$ and $Id:$ get updated). This makes it clear what you mean by literally means - to you, a commit essentially does a checkout, so a commit literally means a checkout. But to me, even though a commit essentially does a checkout, it is not a literally a checkout. Please note that there is nowhere in cederqvist that says a commit is essentially a checkout or a commit implies a checkout, etc (if you can find such, please show me). To an experienced user like you, that may be clear. But as I said, that may be confusing to a new user. A manual such as cederqvist is to make things clear. People should not need a yaer's experience using CVS to understand what cederqvist really means. I run cvs tag. And 1.2 gets tagged. Because you checked out (updated to) 1.2 by committing it. Again, I cannot find any place in cederqvist that says when the user commits a file, he in effect checks it out. And that's my point: cederqvist should mke this clear or use the word checked out with care. Literally 1.1 is the revision I checked out. I did not check out 1.2, unless commit implies check out - but I think it's better separate them; after all ci and co are two different commands. It was learned long ago that less confusion was created by cvs handling the immediate update, otherwise cvs would have a hard time being Concurrent Versions System, the command you imply are serial locking commands and CVS is a parallel merging system. I did not imply any command. What I mean is less confusion would be created by explaining what check out really mean, e.g. that would be implied by a commit. Also, stating that a checked-out version is tagged may give the wrong impression that the user (unnecessarily) needs to do a cvs co before tagging. No the update makes it the checked out version, this is simply a misconception on your part. I am pointing out a potential misconception because of the way checked out is used in cederqvist. 2. The problem with checked in is that there may not be any check-in (cvs ci). Suppose I check out a file for the first time and without modifying it, run cvs tag. The one and only one revision gets tagged; but there is never any check-in. If you checked it out there was a check in, which created 1.1. Not necessarily. I initially import the file and then check it out. There is no check-in. Well, I guess you would say something like an import essentially does a check-in or an import literally means a check-in. My take is that if that's what the CVS designers mean, fine, document it in cederqvist to avoid misunderstanding. A user should be not be left wondering whether xxx is essentially doing yyy. From this discussion it is quite apparent that you separate the _concept_ of checkin and checkout, respectively, from the actual command of cvs checkin (or cvs ci) and cvs checkout (or cvs ci), respectively. It appears, to you, the concept of checkout encompasses both the cvs checkout and cvs commit, for example. I am not arguing about the merit of this way of thinking. Look at the title of my post - inacurrate documentation. I am talking about the documentation. If you can find any place in cederqvist that explains that the concept of checkin encompasses cvs checkout and cvs commit, please show me. If you do not explain that to a new user, can you expect him to somehow figure it out himself? Yes, he will eventually. But why can't the documentation give him an easier time? cederqvist is not just a reference for experienced users, it also serves as a guide for first-time users. Stating that a checked-in revision is tagged may give the wrong impression that the user (unnecessarily) needs to do a cvs ci before tagging. Anyone agrees or disagrees? Yes, see above. Incidentally, the entry for