Re: confused over tags
Larry Jones wrote: Todd Denniston writes: Assuming the -t was really -r, this is the expected behavior... No, it is not. Expected behavior is for CVS to remove files that are under its control that do not contain the specified tag, but the original message said that it removed things not yet in cvs, which it should never do. And I'm reasonably certain that it doesn't, so the original poster must be mistaken or described it incorrectly. -Larry Jones You are of course, correct. I missed the things not yet in cvs part. For penitence I submit the following script for use in verification on the troubled user's system. I executed with with Concurrent Versions System (CVS) 1.11.16 (client/server) and got the following results. It does as Larry indicates, b.txt still exists at the end, and it also does what I thought I was indicating (cvs controlled files that are not tagged are removed from the sandbox), i.e., the testdir/CVSROOT/ dir and files are not in the sandbox at the end. cd /tmp/ mkdir junktest cd junktest/ export CVSROOT=/tmp/junktest/Repo mkdir Repo cvs init cvs checkout -d testdir . cd testdir/ ls -l a.txt cvs add a.txt cvs commit -m commitmsg ls -ltrh a.txt cvs commit -m commitmsg ls -ltrh b.txt cvs tag PROD a.txt cvs update -r PROD ls -ltrh cvs update -r PROD -P -d ls -ltrh -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Modif timestamps of files in CVS repository
Hello, I have some dirty admin hacks to do on CVS repository files (*,v). I wonder if there is any risk or incidence to change the file timestamps. NB: I accept the risk to badly hack the files themselves. Thank you for your support Regards -- -- Laurent ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
RE: Modif timestamps of files in CVS repository
Laurent CHARLES wrote: I have some dirty admin hacks to do on CVS repository files (*,v). I wonder if there is any risk or incidence to change the file timestamps. NB: I accept the risk to badly hack the files themselves. So, let me get this straight - you want to change the timestamp of the checkin. First of all, why? Is there a specific reason you want to rewrite history? I'd be concerned about what would happen if you changed the timestamps such that an earlier revision number has a later date than a later revision number, i.e.: rev 1.1: January 6, 2005 rev 1.2: December 31, 2004 I suspect that might confuse CVS somewhat. -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Re: Modif timestamps of files in CVS repository
Laurent CHARLES wrote: I have some dirty admin hacks to do on CVS repository files (*,v). I wonder if there is any risk or incidence to change the file timestamps. NB: I accept the risk to badly hack the files themselves. Jim.Hyslop wrote: So, let me get this straight - you want to change the timestamp of the checkin. Yes, but it was not the sense of my question. First of all, why? Is there a specific reason you want to rewrite history? I'd be concerned about what would happen if you changed the timestamps such that an earlier revision number has a later date than a later revision number, i.e.: rev 1.1: January 6, 2005 rev 1.2: December 31, 2004 We want to rewrite the revision time information within the *,v files, but not to change the date, only to change the way the date is displayed. This is because the old date format with 2 digits for the year crashes viewCVS, while it is ok if the year is written with 4 digits. My question was about the timestamp of the file itself, not the one within the file. Because doing the hack above changes the modification date of all the files, even those that has not changed since ages. I wondered if CVS uses this information (file timestamp), or if it only relies on the date information present within the files. Sorry not to have been clear enough. Thank you -- -- Laurent ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
RE: Modif timestamps of files in CVS repository
Laurent CHARLES wrote: We want to rewrite the revision time information within the *,v files, but not to change the date, only to change the way the date is displayed. This is because the old date format with 2 digits for the year crashes viewCVS, while it is ok if the year is written with 4 digits. Ah, gotcha. I'm wondering if it might be easier to modify viewCVS to handle 2 digit dates safely. I wondered if CVS uses this information (file timestamp), or if it only relies on the date information present within the files. I doubt that CVS uses the timestamp - there are operations that can change the timestamp of the file, without disturbing any revision information: adding/moving/removing tags, many of the 'cvs admin' commands, and so on. I would suspect you're probably safe (of course, apply the usual caveats about backups, being very careful, etc.). Have a look in the contrib directory - who knows, there may be a script already written to perform this conversion for you. This was probably a big issue for the Y2K panic (wow - that was over five years ago already!). -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Re: Modif timestamps of files in CVS repository
Laurent CHARLES writes: We want to rewrite the revision time information within the *,v files, but not to change the date, only to change the way the date is displayed. This is because the old date format with 2 digits for the year crashes viewCVS, while it is ok if the year is written with 4 digits. That is an exceedingly bad idea. It's not a question of old format versus new format -- the RCS file format explicitly requires 2 digits for years 1900 through 1999 and all digits for subsequent years (it does not support years prior to 1900). My question was about the timestamp of the file itself, not the one within the file. Because doing the hack above changes the modification date of all the files, even those that has not changed since ages. CVS doesn't care about the RCS file's timestamp. -Larry Jones That's one of the remarkable things about life. It's never so bad that it can't get worse. -- Calvin ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Re: Can't download CVS!
Hello, * On Thu, Jan 06, 2005 at 12:07:27AM -0600 jsWalter wrote: CVS (as in from cvshome.org) is as close to CVS on Linux you can get without running Linux. This is only client software, not the server. This is not true. If you install it on cygwin on Windows, you can use it as a server, too. Anyway, I would not recommend to to use a Windows server if any of the clients uses a case-sensitive filesystem. Regards, Spiro. -- Spiro R. Trikaliotis http://www.trikaliotis.net/ http://www.viceteam.org/ ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Listing file versions by tag
How do I easily and efficiently list all files with a particular tag? Let's say, for example, that when a set of files are committed a tag is associated with them. Thanks. -- If love is blind, why is lingerie so popular? begin:vcard fn:Andrew DeFaria n:DeFaria;Andrew adr:;;6265 Kelez Court;San Jose;California;95120-2819;United States email;internet:[EMAIL PROTECTED] tel;work:408-979-4311 tel;fax:408-997-6900 tel;home:408-997-6900 x-mozilla-html:TRUE url:http://defaria.com version:2.1 end:vcard ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
RE: Listing file versions by tag
Andrew DeFaria wrote: How do I easily and efficiently list all files with a particular tag? Let's say, for example, that when a set of files are committed a tag is associated with them. cvs log | grep -E (RCS file: |particular_tag) | grep -B1 particular_tag should do it. Your subject line says file versions. If you don't want the revision number, then add another grep: | grep -v RCS file -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. ( http://www.leitch.com ) Columnist, C/C++ Users Journal ( http://www.cuj.com/experts ) ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Re: Can't download CVS!
* On Thu, Jan 06, 2005 at 12:07:27AM -0600 jsWalter wrote: CVS (as in from cvshome.org) is as close to CVS on Linux you can get without running Linux. This is only client software, not the server. This is not true. If you install it on cygwin on Windows, you can use it as a server, too. I stand corrected. Walter ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Re: [Fwd: Q on keyword substitution]
jsWalter [EMAIL PROTECTED] wrote: I'm using phpDocumentor and would like to have the '@since' tag auto insert the CVS file version, but not change it the next time the file is submitted. this... * @since $Version: $ to become... * @since 1.24 not... * @since $Version: 1.24$ Try 'cvs admin -kv'. Try it on a test repository first. -- pa at panix dot com ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Re: [Fwd: Q on keyword substitution]
jsWalter [EMAIL PROTECTED] writes: Is there a way to have a substitution happen only once? ie: I'm using phpDocumentor and would like to have the '@since' tag auto insert the CVS file version, but not change it the next time the file is submitted. this... * @since $Version: $ to become... * @since 1.24 not... * @since $Version: 1.24$ So, I'm asking for a one time substitution. And, yes, I could modifiy the line next time I'm in the file, if I remember. Mark replied 'cvs admin -ko' after the first commit. This won't do what I'm looking for. It will tell CVS to *never* do any more substitution. on any keywords. I will take it form the deafing silence onthis that it can not be done. Oh well. Walter ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs
Re: [Fwd: Q on keyword substitution]
jsWalter [EMAIL PROTECTED] wrote: I'm using phpDocumentor and would like to have the '@since' tag auto insert the CVS file version, but not change it the next time the file is submitted. this... * @since $Version: $ to become... * @since 1.24 not... * @since $Version: 1.24$ Try 'cvs admin -kv'. Try it on a test repository first. Well, doesn't this tell CVS not to proces *any* keywords on this particular file? Well, it looks like I'm asing for the impossible, again. oh well. Thanks Walter ___ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs