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

Re: Scheduling an email of change logs.

From: Richard Quadling <rquadling_at_googlemail.com>
Date: Mon, 2 Nov 2009 22:02:34 +0000

2009/11/2 Bob Archer <bob.archer_at_amsi.com>:
>> 2009/11/2 Simon Large <simon.tortoisesvn_at_googlemail.com>:
>> > 2009/11/2 Richard Quadling <rquadling_at_googlemail.com>:
>> >> 2009/11/2 Simon Large <simon.tortoisesvn_at_googlemail.com>:
>> >>> 2009/11/2 Richard Quadling <rquadling_at_googlemail.com>:
>> >>>> Hi.
>> >>>>
>> >>>> I'm a newbie to SVN, so please be gentle.
>> >>>>
>> >>>> I'm on windows, so, please be even more gentle!
>> >>>>
>> >>>> Using TortoiseSVN, I can manually create CSV files of the
>> cache for
>> >>>> the repository (Right clicking a repository, choosing
>> TortoiseSVN ->
>> >>>> Settings -> Cached Repositories -> Update & Export - more or
>> less).
>> >>>>
>> >>>> From there, I can create emails for each major project/branch
>> per
>> >>>> day/week showing the commit messages and urls of changes.
>> >>>>
>> >>>>
>> >>>> Is there a way I can programmatically do the export? I want to
>> have
>> >>>> the process run unattended, so no manual update & export.
>> >>>>
>> >>>> As some indication of the project, there are 969 authors,
>> 368,438
>> >>>> paths, 290144 revisions. It is a pretty big project.
>> >>>>
>> >>>> I also see that I have a logcache folder containing a
>> Repositories.dat
>> >>>> file and the cache file for the repository I'm interested in.
>> Is this
>> >>>> file readable externally? Is the format/structure documented?
>> >>>>
>> >>>> I've no problems accessing the CSV files to build my reports.
>> I'd like
>> >>>> to be able to create the CSV files automatically or to update
>> the
>> >>>> logcache file and access that.
>> >>>>
>> >>>> Either way really.
>> >>>>
>> >>>> Any help would be appreciated.
>> >>>
>> >>> You would be better off doing this on the server side, maybe
>> triggered
>> >>> by a post-commit hook. That is how commit emails are usually
>> sent out.
>> >>> If you use the log cache on the client you have to be sure the
>> client
>> >>> is up-to-date first.
>> >>>
>> >>> Simon
>> >>>
>> >>> --
>> >>> :       ___
>> >>> :  oo  // \\      "De Chelonian Mobile"
>> >>> : (_,\/ \_/ \     TortoiseSVN
>> >>> :   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
>> >>> :   /_/   \_\     http://tortoisesvn.net
>> >>>
>> >>> ------------------------------------------------------
>> >>>
>> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMe
>> ssageId=2413826
>> >>>
>> >>> To unsubscribe from this discussion, e-mail: [users-
>> unsubscribe_at_tortoisesvn.tigris.org].
>> >>>
>> >>
>> >> No problem with doing it client side. I just want to be able to
>> get
>> >> the logcache uptodate before I run the email scripts.
>> >>
>> >> That is what I don't know how to do programmatically. I can do
>> it
>> >> manually. But I don't want to be here every day at midnight
>> waiting
>> >> for it...
>> >>
>> >> Currently ...
>> >>
>> >> tortoiseproc /command:settings
>> >>
>> >> will show the dialog for all the settings.
>> >>
>> >> If this could be extended to say something like ...
>> >>
>> >> tortoiseproc /command:settings /logupdate:<repository_url>
>> >> tortoiseproc /command:settings /logexport:<repository_url>
>> >> /destination:<somepath with a prefix for the exported files>
>> >>
>> >> e.g.
>> >>
>> >> tortoiseproc /command:settings
>> /logupdate:http://svn.xxxx.net/repository
>> >> tortoiseproc /command:settings
>> >> /logexport:http://svn.xxxx.net/repository
>> >> /destination:D:\SVNCaches\XXXX_
>> >>
>> >> would create ...
>> >>
>> >> XXXX_authors.csv
>> >> XXXX_changes.csv
>> >> etc.
>> >>
>> >> Something like that would be really useful for me.
>> >>
>> >> Or is there another way.
>> >>
>> >> The idea is that I will process the data to extract the commit
>> logs
>> >> for all the major project branches each day and email the
>> significant
>> >> groups. Essentially a summary of all the commits.
>> >
>> > TortoiseSVN is a GUI client, so it is not intended to be used
>> > unattended, any more than you call MS Word from a batch file to
>> > generate documents based on command line parameters. You need to
>> use
>> > the command line client for scripting. You can do that client
>> side or
>> > server side, but for automated nightly tasks, personally I would
>> want
>> > to set that up on the server and then forget about it. YMMV.
>> >
>> > Simon
>> >
>> > --
>> > :       ___
>> > :  oo  // \\      "De Chelonian Mobile"
>> > : (_,\/ \_/ \     TortoiseSVN
>> > :   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
>> > :   /_/   \_\     http://tortoisesvn.net
>> >
>> > ------------------------------------------------------
>> >
>> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMe
>> ssageId=2413884
>> >
>> > To unsubscribe from this discussion, e-mail: [users-
>> unsubscribe_at_tortoisesvn.tigris.org].
>> >
>>
>> TortoiseProc _IS_ a command line util. I use it to script regular
>> updates and build processes already. I initially used Cygwin's svn
>> (because I already used other Cygwin's tools), but someone buggered
>> up
>> the permissions and win32 lost access and I've not had chance (or a
>> care) to sort it.
>>
>> I do also have Slik's svn cli toolset.
>>
>> Looks like I'm going to have to extend TortoiseProc for my own
>> needs.
>>
>
> Is there a reason you don't just use the native win32 svn cli client? Most of the svn devs recommend that you not use svn in Cygwin.
>
> BOb
>
> ------------------------------------------------------
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2413922
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

I'm not using Cygwin's svn any more (probably last 6 months).

-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2413956
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-11-02 23:02:58 CET

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

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