getting rid of cvsgui protocol

Jens Miltner <[email protected]>
Newsgroups gmane.comp.version-control.cvs.gui.devel
Message-ID <[email protected]>
I just recently discovered that a lot of cvsgui's output ends up in the 
system console rather than MacCvs' console window, because the cvs code 
tends to do quite some of it's output through regular printf rather 
than cvs_output.
Next, I tried the approach cvsnt takes by redefining printf to 
cvs_printf and catching printf in the cvs code like this, but this (1) 
requires that all code that outputs interesting stuff includes the 
header file that #defines printf and (2) this doesn't catch messages 
issued by e.g. ssh when connecting to a remote repository by means of 
ssh.

When I asked Tony how he solved this problem in cvsnt he hinted me 
towards the possibibility of not using the cvsgui protocol alltogether 
and rather just redirect stdio to a pipe where MacCvs can collect all 
stdio output...
I then investigated this approach and actually, it looks like there's 
no real need for the cvsgui protocol at all on Unix flavored platforms, 
since all the cvsgui protocol does (AFAICS) is:

	- catch output from cvs
	- provide environment variables
	- detect cvs termination

All of those can be solved using standard APIs (pipes, execve, 
wait_pid) and thus I think we could get rid of the cvsgui protocol at 
least on those platforms that support those means of implementing the 
requirements.
Is there anything else the cvsgui protocol does that I haven't 
discovered yet? If not, Jerzy, do you think it would be too much 
difference in handling cvs execution if MacCvs (and probably also gCvs) 
wouldn't use the cvsgui protocol?
(Getting rid of the cvsgui protocol would also allow to use 'regular' 
cvs distributions, or actually _any_ cvs distribution for that matter.)

</jum>

[Non-text portions of this message have been removed]


 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/NhFolB/TM
---------------------------------------------------------------------~->

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/cvsgui-dev/

To unsubscribe from this group, send an email to:
 [email protected]

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.