Skip to Main Content
Pragmatic Guide to Subversion
book

Pragmatic Guide to Subversion

by Mike Mason
November 2010
Intermediate to advanced content levelIntermediate to advanced
150 pages
2h 55m
English
Pragmatic Bookshelf
Content preview from Pragmatic Guide to Subversion
42Using Repository Hooks

Subversion exposes a number of integration points into its transaction life cycle. These integration points are called hooks, and they correspond to events in the repository such as committing a change, locking and unlocking files, and altering revision properties. When Subversion gets to each point in its transaction life cycle, it will check for and execute the appropriate hook script.

Hook scripts have access to the in-flight transaction as it is being processed and are passed different command-line arguments depending on which hook script is executing. For example, the pre-commit hook is told the repository path and the transaction ID for the currently executing commit. If a hook script returns a nonzero exit code, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick

Publisher Resources

ISBN: 9781680500035Errata Page