Hello all ;)
Stefan Küng a écrit :
Thx Stephan ..
> vcf wrote:
>> ( Hops.. my first message was in the wrong topic :-( )
>> Hello All ;)
>> Sorry for my english, I need some help about my project.
>> The goal is make an application tray , able to check for defined
>> working copies, check if needs an update ( check server side revision
>> ) and by option, automatic/silent update.
> Very bad idea. Automatic updates can only lead to problems. What do
> you do if there's a conflict during an update?
> Or if someone has a file open with unsafed changes, and your automatic
> update modifies the underlying file? The user would loose his changes.
Ok, you are right.
>> As this project is for client desktop only, already using TSVN, I
>> prefere to NOT instal SVN on this computers.
>> As I prefere installing only TSVN on this computers, I DO NOT WANT
>> write myself again another SVN client.
>> As TSVN have nice update checking system, my client so be updated in
>> easy way.
>> So something as TortoiseProc.exe /command:update but if only needed
>> will be nice, with success/fail box ( |/closeonend:5 -> only result
>> box showed ? )|
>> I test TortoiseProc.exe automation, but , according the question of
>> Sönke Frantz ( Subject: Re: Return values from TortoiseProc?
>> ) My question it is noway to have any return action from
>> TortoiseProc.exe ?
> No, as explained several times already, there's no way to return a
> value on the command line. TSVN is a GUI app, not a console app.
>> I see in sources code of TortoiseProc some progDlg.DoModal(); so mabe
>> add a return value from DoModal, step by step will be great.
> But where would that return value be passed on?
As progDlg.DoModal() CAN return any value defined, something as #define
AUTO_TSVN_SUCCESS (something) and #define AUTO_TSVN_FAILED (something)
will be great.
>> Or, just an idea, add a special parameter for example "/output" as
>> *TortoiseProc.exe /command:update** /output:"c:\svn_result.xml\"**
>> /path:"c:\svn_ct\" /notempfile /closeonend
>> For instance I just launch _spawnl(_P_WAIT, "C:\\Program
>> Files\\TortoiseSVN\\bin\\TortoiseProc.exe", "TortoiseProc.exe",
>> "/command:update /path:\"F:\\Dev\\MyProject\" /notempfile
>> /closeonend:1", NULL); but no idea about success or not, or last
>> commit revision/author/date, any server error or, lol, locals files
>> So not a 'blind' automation in fact ;(
> Use the right tool for the right job: use the command line tool.
Humm.. maybe right but really I need a special tool.
So, I have build something as I want to do. Now as it no use TSVN any
more, maybe is place is not is this maillist ( sorry ) but I need some
As said, is an Win32 Application Tray, just checking local copies ( get
URL and revision ) and try to get server side revision and compare.
If revision are differents, it pop a message. It need Subversion
installed, and in the PATH env. ( as I can not use TSVN automation
without any returns values )
Please , if anybody have time for test my very first version, will be great.
URL for download is http://www.keosystems.com/dev/SubversionTray/
Please is a beta, do not distribute it.
To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-01-27 17:01:01 CET