Questions tagged [post-commit]

205 questions
1
vote
1 answer

svn mailer.py notifications on a sub-folder basis?

I'm trying to trigger mailer.py as a post-commit, for code committed to a specific sub-folder e.g. My hierarchy is svn/trunk/gui, "trunk" is the repo. and gui is a sub folder, and I want to limit mailer.py for commits to "gui" only. I tried to look…
BlackBeret
  • 11
  • 1
1
vote
1 answer

SVN Post-Commit Script Failing and causing working copy update problems

I've written a Perl post-commit hook that sends out emails via the Perl Net::SMTP module. I was getting the following error when I try to do a commit: Sending subversion/README Transmitting file data .svn: Commit failed (details follow): svn:…
David W.
  • 105,218
  • 39
  • 216
  • 337
1
vote
0 answers

Can I commit a video with GitHub API?

I need to upload the video (.mp4) with GitHub API. I fount a way to upload a text file. Something like this: POST /repos/:user/:repo/git/trees { "base_tree": "{{sha-base-tree}}", "tree": [ { "path": "NewFile1.txt", "mode":…
Dyno Cris
  • 1,823
  • 1
  • 11
  • 20
1
vote
2 answers

How to write a batch file to update files that have been commited on a server

I am web developer.I edit files in a local svn working copy on my own machine,our development server is a shared disk through samba,and the root directory of the server is also a working copy,what I want to do is to use a client-side svn post-commit…
treblam
  • 265
  • 4
  • 14
1
vote
1 answer

How to "do something" after an EJB3 transaction commit?

Is there something in EJB3 that allows me to execute some code just after the transaction commit (I want to send XMPP messages to notify external devices for updates) ? I know I can do something like that using JTA API and enlisting my own writed XA…
Jonathan
  • 13
  • 3
1
vote
2 answers

How can I add a single post-commit for multiple repositories in subversion hooks

We have a subversion setup like /var/svn/repoA, /var/svn/repoB, /var/svn/repoC etc. We use Redmine for project management. To automate some tasks like updating Redmine projects, we are using subversion post-commit hook. As we have multiple…
1
vote
1 answer

SVN Post-commit import

I have a set of server-side Pre- and Post-Commit hooks that would make tracking changes easier for us (VisualSVN on a Windows server, if that matters): The Pre-Commit exports the users files to the server if they are of a specific type (binary…
Jabbl
  • 59
  • 7
1
vote
1 answer

Git Post Commit Hook Getting Commit Number

I am working on having my post-commit hook change a file to have the commit number, so that my application can use that in error handling. I was able to build the perl script to change the file, but I was wondering how to get the commit id from the…
Dave Long
  • 9,569
  • 14
  • 59
  • 89
1
vote
1 answer

Update table using multi record block in post forms commit

what I wanted is to update my table using values from a multi record block and here is what I tried in post forms commit: BEGIN FIRST_RECORD; LOOP UPDATE table1 SET ord_no = :blk.new_val; EXIT WHEN…
1
vote
1 answer

How to find out in a post-commit-hook if the current revision is creating a branch/tag?

I want to write a post-commit hook that only triggers, if the current commit is creating a new tag. Tags are copied to a /tags/*new_tag_name*/ directory. My motivation is, if the commit is creating a new tag, the new tag should be checked out in my…
Thomas
  • 10,289
  • 13
  • 39
  • 55
1
vote
1 answer

SVN post commit hook not working?

Navigate to TortoiseSVN on mine local box, open settings and 'Hook Scripts'. Click 'Add...' and entered below values Hook Type post_commit_hook Working Copy Path https:\svn.internal.net\svn\Release_Customer Command Line to…
user3198603
  • 5,528
  • 13
  • 65
  • 125
1
vote
1 answer

How to identify whether an item in an SVN diff is a file or a folder?

I'm writing a post-commit hook, in which I use svn diff -summarize to get a summary of what was changed. When files/folders are added or modified, I can simply get their file type in a working copy that is kept updated at all times automatically.…
Bruno De Barros
  • 1,535
  • 2
  • 16
  • 30
1
vote
0 answers

Phabricator Audit got Exception (Can't parse an empty diff)

I just set up a Phabricator using svn and I want it to work with post-commit. actually it work well after any one commit a change. this is a snapshot of the Audit page but when i click one commit and there is an exception:Can't parse an empty…
blue wang
  • 11
  • 1
1
vote
1 answer

Send email on commit to SVN

How to configure Subversion to send email to all developers and administrators when I commit source code?
duy
  • 11
  • 2
1
vote
2 answers

Subversion failing on post-commit hook?

I'm trying to make subversion automatically deploy the current working copy upon commit. eg, if someone checks out the 'public_html' repo and then commits a change, I need SVN to automatically run 'svn update /path/to/public_html/' on the server…
1337ingDisorder
  • 787
  • 6
  • 4