Re: patch to log.c to permit dates to be output in localtime

2000-05-21 Thread Michael Gersten
... Now, if I choose a constant UTC time carefully, I may find there's one, which when converted into any timezone will not involve any kind of complicated calculalations, (e.g. no leap years, no crossing month boundaries, no crossing year

Re: Bug (?) in branching support / removed files

2000-05-21 Thread Michael Gersten
I am looking for help from someone who knows the RCS file format quite well. Noel, this probably means you :-) About a week ago, I had a problem. In summary, I made changes to a working directory, including deleting files; I then tried to commit to a branch. Unfortunately, the deleted files were

Bug (?) in branching support / removed files

2000-05-16 Thread Michael Gersten
There seems to be a problem in branching support with removed files. Repeat by: 1. Make changes to the local copy, including deleting files. 2. Decide that you want to commit to a branch, not the trunk. 3. 'cvs tag' will not work, nor will 'cvs tag -b' as there are errors to correct first. 4.

Re: Bug (?) in branching support / removed files

2000-05-16 Thread Michael Gersten
Incidently, does anyone know a good way to recover from this? Here's a log output of one of the deleted files. $ cvs log GADBEc.h RCS file: /lab/CVS/GABackend/GABase/GADBBase/Attic/GADBEc.h,v Working file: GADBEc.h head: 1.2 branch: locks: strict access list: symbolic names:

Re: Need shlwapi.dll for wincvs

2000-05-11 Thread Michael Gersten
A different question then: Attempting to use WinCvs 1.0.6 (the stable version) results in a null pointer exception (trying to read address 0) right after bringing up the 'splash' window. (This was the behavior that prompted me to upgrade, btw). Any ideas? Or is it also reinstall NT? I have NT

Re: bug in import?

2000-05-11 Thread Michael Gersten
All that's really "automatic magic" in the vendor branch support is the fact that "cvs import" automatically creates the branch structure, and any truly obvious conflicts with local changes on the trunk are detected and reported so that the maintainer can have some indication as to how

Re: bug in import?

2000-05-10 Thread Michael Gersten
Now I'm confused. How is it a feature? Assume that I want to be able to say "This is the newest source code from the vendor. This file foo.m is now gone, and not used. No changes have been made to foo.m on my system; it is still version 1.1.1.1; it is not used anymore. I want it to disapear from

Re: bug in import?

2000-05-10 Thread Michael Gersten
Now I'm confused. How is it a feature? Assume that I want to be able to say "This is the newest source code from the vendor. This file foo.m is now gone, and not used. No changes have been made to foo.m on my system; it is still version 1.1.1.1; it is not used anymore. I want it to

Re: email trouble

2000-05-10 Thread Michael Gersten
(Incidently, I get bounces anytime I try to send to [EMAIL PROTECTED]) (Then either there's something incorrectly configured in your mailer or DNS; or your mailer is listed in the MAPS, ORBS, or DUL, or some other, RBL. I did a quick peek through the logs for "getasia.com" and didn't

Re: cvs checkout -c again

2000-05-05 Thread Michael Gersten
That gives you every directory. What if you only want the top level directory, or only the first layer of /BigProject? (I don't want 'ls -R' as the only option :-) Gary Pinkham wrote: I've been using ... cvs rdiff -s -r 0 . | grep 'Diffing' to get a directory list of the repository.. I

Re: question (preference?) about xmalloc

2000-05-04 Thread Michael Gersten
Just for people to think about... In working with object oriented code, we OFTEN create and return zero length arrays when we are returning an array and have nothing to return (ex: zero records from a database fetch.) Accepting a zero length request, and returning a zero byte long allocation

Re: cvs checkout -c again

2000-05-04 Thread Michael Gersten
Try just hal hal it works for us. [EMAIL PROTECTED] wrote: Greetings! I need WinCVS and "cvs checkout -c" to be able to list all of the modules in our repository. The problem is, they both only list the contents of the "CVSROOT/modules" file. (I assume WinCVS uses "co -c") So, you

Re: Implementing CVS transactions via Phased Commit

2000-05-03 Thread Michael Gersten
Just my thoughts. Trying to get an automic multi-file commit: (1) Edit files, and check them in. [Errors may occur here, leaving some files checked in and others not. No matter.] If multiple people are running though this procedure at the same time, you can get some nasty conflicts at this

Re: Could timestamps be replaced with MD5?

2000-04-19 Thread Michael Gersten
No, using timestamps relies on the assumption that the timestamp always changes when the file is modified -- it does *not* assume the latter (although it does assume that the consequences of thinking that the file has been modified when it hasn't are not severe). You seem to think that

Re: Help: Scripts to change repositories

2000-04-19 Thread Michael Gersten
The script isn't doing what you think it's doing. Fundamentally, I've got a script that swaps out CVS's control files into a holding directory, or swaps them out from a holding directory. And, there's two others for adding a new repository directory into the system (one for a repository that

Re: Could timestamps be replaced with MD5?

2000-04-19 Thread Michael Gersten
NTP never sets the clock backwards (see 2, above). *BZZT* WRONG! Xntpd, version 3 (I think 3.92 or 3.93, but don't quote me), would OFTEN set the clock backwards. More to the point, if the offset is small, the time deamon adjusts the drift rate. If the offset is large, it takes a lump jump.

Re: Could timestamps be replaced with MD5?

2000-04-18 Thread Michael Gersten
From the MD5 RFC: http://www.csl.sony.co.jp/cgi-bin/hyperrfc?rfc1321.txt % It is conjectured that it is computationally infeasible to produce % two messages having the same message digest, or to produce any % message having a given prespecified target message digest. You can be

Re: Could timestamps be replaced with MD5?

2000-04-17 Thread Michael Gersten
And, although it is possible to explicitly reset the timestamp after a modification, so many things depend on timestamps being correct that no one ever does it.) Gee, ever hear of restoring from a backup? Yes, a checksum can give you duplication. But checksum + size is pretty tight. Over

Help: Scripts to change repositories

2000-04-17 Thread Michael Gersten
I'm working on some scripts to allow people to use multiple repositories with a single set of files, and I've run into a problem. 'cvs add subdir' will fail to work if there is a CVS directory in subdir. No test is made to see if there is no control files in subdir or not, only if the CVS

Re: Company mode dev. (one disk server) opposed to Open Source mode (each has his own disk server) ?

2000-04-13 Thread Michael Gersten
(I can hear the "but we only check good stuff in" comments coming already! :) ) Commit early, commit often, commit to branches!

Re: Help!

2000-04-11 Thread Michael Gersten
I'm not sure I understand this. SCCS (if my memory is correct) did allow checking out multiple files; it did not allow checking out the same file by multiple people. What, exactly, are you trying to do? If you want to check out specific combinations of files, you can use tags per file (including

Re: Oldest CVS version to support remote repos

2000-04-10 Thread Michael Gersten
Hey, we used 1.10.5, and it worked just fine. Isn't 1.10.8 the latest version? (or do I need to upgrade again) "Greg A. Woods" wrote: [ On Saturday, April 8, 1900 at 12:41:00 (CDT), Michael Sokolov wrote: ] Subject: Oldest CVS version to support remote repos I wonder, what is the

Re: Completely removing directories -- how?

2000-04-08 Thread Michael Gersten
On Fri, Apr 07, 2000 at 12:59:04AM -0500, Michael Gersten wrote: I don't think CVS itsself has this functionality but you can always go into the repository directories and remove things with rm. Just *BE VERY CAREFUL* when your doing this so that you don't delete something you'l

Re: Completely removing directories -- how?

2000-04-07 Thread Michael Gersten
I don't think CVS itsself has this functionality but you can always go into the repository directories and remove things with rm. Just *BE VERY CAREFUL* when your doing this so that you don't delete something you'ld like to keep. Unfortunately, I'm trying to avoid this. I'm not the only one

Re: Completely removing directories -- how?

2000-04-07 Thread Michael Gersten
Right now, if I manually remove files from the repository, future checkouts will be good, but anyone with stuff checked out will get errors if they try to update. Right now, if I just do 'cvs rm', then 'update -dP' will fail. You've read the Cederqvist CVS manual? You'll find it in

Completely removing directories -- how?

2000-04-06 Thread Michael Gersten
How can I completely remove a directory from CVS? Some build directories got checked into a project by mistake. This directory contains only .o files. cvs rm -f will remove it, but later uses of 'cvs update -dP' will fail (because it is still tracked as an empty directory, but isn't anymore.)

Re: Disable cvs tag -F of branch tags

2000-03-31 Thread Michael Gersten
ok, then cvs rtag -r oldtagname newtagname module-name :-) (as some have pointed out, it is not a rename without an rtag -d as well.) "Cameron, Steve" wrote: Michael Gersten wrote [...] Just a thought, what's wrong with cvs rtag -r oldtagname newtagname

Re: To branch or not?

2000-03-30 Thread Michael Gersten
If I understand you correctly: You have some source files that are common to all your work. You have some source files that have slight differences in the different versions. Then, do the following: 1. Have a file 'machine.h'. Include this. #define MACHINE machine_name 2. Have a file

Re: Proposed new aliases, like HEAD

2000-03-26 Thread Michael Gersten
"Greg A. Woods" wrote: TRUNK - top of the trunk BHEAD - head of the current branch (or trunk if not on a branch) PHEAD - head of the parent branch (or trunk if the file split from the trunk) TBASE - point at which this file left the trunk. Same as self if not on

Re: Proposed new aliases, like HEAD

2000-03-24 Thread Michael Gersten
"Derek R. Price" wrote: I'm not exactly sure what you mean by magic versus real. I think CVS and RCS each have their own magic revision numbers used to specify branches. And like I said, I think CVS can use either. Magic branches are the cvs tags that you give to the -r options of CVS. Real

Re: Proposed new aliases, like HEAD

2000-03-23 Thread Michael Gersten
on the list a while back). However, even if there is no real RCS version entered, there is still a tag for the (yet to be made) branch, and as long as that tag is there, that's all the info you need. Michael "Cameron, Steve" wrote: Michael Gersten You're right. For consistency's sake,

Proposed new aliases, like HEAD

2000-03-22 Thread Michael Gersten
You're right. For consistency's sake, "cvs up -C file" should get a clean copy of the HEAD. I think, in general, there should be a way to specify the base revision (is there a BASE alias similar to HEAD?) Ok, since HEAD means different things, etc, I'd like to propose the following alias

Re: Synchronizing across multiple repositories: An idea...

2000-03-17 Thread Michael Gersten
Just to save me from re-inventing the wheel, can you forward me the "swap the admin directories" scripts? Thanks. Michael "Greg A. Woods" wrote: [ On Thursday, March 16, 2000 at 23:11:55 (-0600), Michael Gersten wrote: ] Subject: Synchronizing across multiple r

Re: CVS keywords and make

2000-03-17 Thread Michael Gersten
But, since I started using C++, I have been plagued by long build times. (Yes, I've read Lakos.) Can someone give me a URL for Lakos? Michael

Re: cvs update -p behaviour in WinCVS

2000-03-16 Thread Michael Gersten
Speaking of diff utilities, I have configured WinCVS to use C:\Program Files\GNU\WinCvs\diff.exe -u to do diffs, yet I still get a non-unified diff output. Know how to solve that? Alexandre Parenteau wrote: Harald, You can not expect to redirect the stdout because of TCL (the shell used

Synchronizing across multiple repositories: An idea...

2000-03-16 Thread Michael Gersten
Previously I had asked if there were any tools to automatically sync two repositories. The idea was to work with developers that might be only occasionally connected, but using a local (to them) repository that occasionally synched to the main (remote) one. The email I received generally

Re: Feature wanted: patch support and moving in the tree

2000-03-14 Thread Michael Gersten
"Cameron, Steve" wrote: [smc] [snip] [smc] [..regarding "cvs update -j rev1 -j rev2 myfile.c" ] rev1 and rev2 can be arbitrary revisions. (Well, with the restriction that they must already be in the same repository...which is the main

Re: cvs tag vs. rtag

2000-03-13 Thread Michael Gersten
'rtag' is used to create a tab in the repository that is equal to another tag in the repository. It is (afaict (as far as I can tell)) only used to create a branch tag equal to another tag. E.G.: cvs tag base-name # create a base for branch cvs rtag -r base-name -b name module#

Re: removing the need for cvs add file to contact the server....

2000-03-08 Thread Michael Gersten
"Greg A. Woods" wrote: Make sure that you don't permit 'cvs co mispelling' to create a new directory when 'cvs co misspelling' was intended. If you spell it right in the "CVSROOT/modules" entry then all should be well... :-) How about 'cvs new module-name module-dir local-dir' to

Feature wanted: checkin time tagging

2000-03-06 Thread Michael Gersten
Here's a much wanted feature. I want to specify a tag at check in time. Specifically, I want to specify "Create a new branch, and check in on that branch", or "Check this in on my parent, assuming no changes have been made to my parent since I branched". (I actually want more, but this is

remote shared repositories

2000-03-06 Thread Michael Gersten
How can I share a repository across two different machines? Lets say that two machines will talk to each other only once a night. Lets say that each machine has developers, and they want to work on a shared CVS project. How/can/is it possible for them to share/synchronize their CVS