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

RE: subversion transactions

From: Bosnjak Zoran ITWEP <Bosnjak_at_iskratel.si>
Date: 2005-06-30 19:07:38 CEST

I am now trying to do code review via branches and I have already implemented simple pre-commit script that will check if all modified files are reviewed and are OK. This works for now... except it requires a lot of manual branch manipulation.

Could I automate the procedure inside pre-commit stript:
- if all files are reviewed with success, accept commit
- if any file is rejected, cancle commit
- if any file is not yet reviewed:
        - the pre-commit script should make a branch automaticly (from HEAD of curent branch)
        - the pre-commit script should apply the transaction to new branch instead (not to curent branch)
        - send e-mail to the reviewer with new branch information

Is this possible?

Zoran Bosnjak

> -----Original Message-----
> From: Ben Collins-Sussman [mailto:sussman@collab.net]
> Sent: Thursday, June 23, 2005 6:50 PM
> To: Bosnjak Zoran ITWEP
> Cc: users@subversion.tigris.org
> Subject: Re: subversion transactions
> On Jun 23, 2005, at 8:32 AM, Bosnjak Zoran ITWEP wrote:
> >
> > Please confirm if this scenario is possible
> No, it's not possible using existing svn binaries and tools,
> nor will
> scripting help. When I said that the "foundation is laid", I merely
> meant that the *APIs* already exist which could allow the things you
> describe to happen. But you'd have to write your own custom clients
> and tools to make use of such APIs.
> That said, there's no need to undertake such a huge project.
> You can
> accomplish the same effect just using branches. Have each user
> commit changes to a private branch, and then have others review and
> comment on it in the branch. (Anybody can 'svn switch' their
> working
> copy to any branch, back and forth.) When everything is all
> approved,
> then merge the branch to /trunk.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 30 21:46:17 2005

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

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