|
From: | Derek Robert Price |
Subject: | Re: Checking a Tag |
Date: | Wed, 23 Jul 2003 10:18:53 -0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 |
Mark D. Baushke wrote:
Derek Robert Price <derek@ximbiot.com> writes:Since the root of Timm's complaint was the non-deterministic return code from checkout, does it make sense to return an error code and print the no-such tag message when no files were checked out, only when a tag was specified? Just a thought. I don't plan on doing the work myself just now. I'll need to see a patch before I consider this seriously.Hmmm... I suppose that could be an approach. I would worry that a makefile that does a 'cvs update -r foo -dP subdirectory' where no files were found because subdirectory was intended to be pruned could be a problem case...
I think it would be better for CVS to provide a consistent return code. A user could always use `cvs up -dPrfoo subdirectory || true' or even parse the actual output of the command for the "no such tag" error message if they knew they'd like to ignore it.
Alternatively, I suppose we could start returning specific error codes on platforms which support return codes other than EXIT_SUCCESS & EXIT_FAILURE. Those might be more machine readable.
Again, I like these ideas but have no intention of implementing them myself anytime soon. I would, of course consider a patch.
Derek -- *8^) Email: derek@ximbiot.com Get CVS support at <http://ximbiot.com>! -- If virtuous, [the government] need not fear the fair operation of attack and defense. Nature has given to man no other means of sifting the truth, either in religion, law, or politics. - Thomas Jefferson to George Washington, 1792
[Prev in Thread] | Current Thread | [Next in Thread] |