Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6723645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:35:37+00:00 2026-05-26T09:35:37+00:00

I have a post commit hook that will save the svn log as an

  • 0

I have a post commit hook that will save the svn log as an XML file.Next i have to do formatting for showing the data in the form of a tabular report that will have the following details:
1)Work Order NO
2)Filename
2)Filepath
3)Revision No.
4)Owner
5)Commit Time

This report needs to be send to a group everyday at 5 PM via email.
I need some sample code for help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:35:38+00:00Added an answer on May 26, 2026 at 9:35 am

    It all depends upon the language you’re using.

    Many languages have modules for reading XML files. For example, Perl has the XML::Simple module.

    If this is a daily report that you need for your Subversion repository at 5pm every day, you’re better off simply running the report once at 5pm using some sort of scheduling software. On Unix systems, you could use the cron daemon to schedule your system to run a script. On Windows, you can use the Schedule Task Wizard.

    Running the report can be very simple. All you need is something like this:

    svn log -v '{'$YESTERDAY'}':HEAD http://path/to/repository
    

    You have to calculate what $YESTERDAY is and put it in YYYYMMDD format, and you have your report!

    How do you get yesterday’s date? Depends upon your programming language. Most operating systems store dates as the number of seconds from an epoc (In Unix, it’s January 1, 1970). You use your programming language’s date routines.

    This would be listed in change set order with a list of of the files changed under each change set. If you need a different format, you could use the --xml switch, and get the report in XML format. The format for this XML output is pretty straight forward, and is so regular in structure that you could even parse it without using an XML parsing module.

    I can’t really give you much help beyond this. I don’t know the OS, the language you use, or even exactly what you need in your report. All that I can tell you is that you don’t need a post-commit hook — just run the svn log at the appropriate time with the right parameters, and in minutes, you have your report all ready to mail out.

    And, since this is using svn, all you need is the Subversion client. You don’t even have to produce this report on a particular machine as long as that machine has a Subversion command line client (downloadable from many places) and someway to specify when the report can be run.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a post-commit hook in svn that runs fine from the command line
I am stuck with that task. I've written svn post-commit hook, that should update
I have a post-commit hook that is updating a working copy. In that working
I have the following post-commit hook setup and running: #!/bin/bash /usr/bin/svn update /var/www/html/dev >
My post commit hook is not running after git. I have verified that the
I'm running SVN on Windows and had a post-commit hook that was running the
I've got a SVN post-commit hook that updates a working copy when a commit
I've got a post-commit hook script that performs a SVN update of a working
Problem background I have a post-commit script for my SVN repository which archives &
I'm trying to set up a git post-receive hook such that when a commit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.