문홍재 wrote:
> i read your replys about my question.
> (http://svn.haxx.se/tsvn/archive-2006-03/0160.shtml) and i understood at
> all.
>
> and first i thought about independency cache module.
>
> but i think it is idiot. because, as you know tsvncache.exe has some big
> mem usage.
> and my rsvn is always running with tsvn, so if i make another cache
> process, it could make too waste of system memeory.
Yes, having two such caches really wouldn't be that good.
> so i make idea some hack.
>
> 1. call explorer's property window by ShellExecuteEX.
> 2. trace property window's handle.
> 3. take handle of first child's handle.
> 3. and take handle of first child's handle again.
> 4. that is a static window, handle of folder icon with tsvn overay image.
> 5. get dc of that, and sampling image for knowing working copy's status.
Yikes! That's ugly. Don't do that, ever!
> i suppose it is possible. but its a some crudeness.
> and then.. i request to you some service function of tsvncache.
>
> -request-
>
> can you offer information of version controlled file or directory's
> caching information in tsvncache.exe by external application's invoke?
>
> 1. invoke path to tsvncache.exe from external instance (with some
> offering id) (via tempfile, via user messege, etc..)
> 2. tsvncache.exe process the offers.
> 3. tsvncache.exe returns result to external instance (with same offering
> id, too) (vial tempfile, registry data, etc..)
> 4. external instance can using result value and validate by offered id
> value of it.
>
> it is a just request. but i hope you have interesting about this.
> if you can't make this feature, i'll make as my crudeness style.
As I mentioned last time: just check our code! Since the shell extension
part of TSVN asks the cache about status information, you can go through
our code to see how we do that.
In the file src/TortoiseShell/RemoteCacheLink.cpp you will find out how
to ask the cache for a status. It's done via named pipes. Just do the
same in your app, and the cache will give you any status information you
want.
Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Mar 11 19:50:55 2006