[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Some weirdness in SubWCRev console handling when run from "Far" file manager

From: Alexander Klenin <klenin_at_gmail.com>
Date: 2007-08-22 06:08:47 CEST

Using TortoiseSVN 1.4.99, Build 10371 - 32 Bit -dev
Far Manager is a popular file management software
(http://farmanager.com/?l=en) which runs as a console application.
I am not sure what is going on exactly, but running SubWCRev from Far
results in a console input buffer filled with garbage after SubWCRev
exits.
This usually leads to infinite loop, since Enter code in input buffer
causes Far to run SubWCRev again.
Running SubWCRev from standard command line does not cause this, but
AFAIU this is because cmd.exe clears input buffer itself.
A workaround for me is to run SubWCRev from the batch file,
immediately followed by the call of clearkeys.exe. Delphi source code
of "clearkeys" is:

{$APPTYPE CONSOLE}
uses
  Windows;
begin
  FlushConsoleInputBuffer(GetStdHandle(STD_INPUT_HANDLE));
end.

-- 
Alexander S. Klenin
Insight Experts Ltd.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Aug 22 06:06:27 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.