You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by we...@tigris.org on 2009/03/23 12:26:43 UTC

Conditionnal commit

Hi,

I am using svn to keep track of the evolution of a reference database. This database will be use by many users. The problem is that the software use to consult or modify the database, modify some of the files under revision even if no important modification has been made.
The reference database is compose of a main file and a folder with many simple file. 
So, what I would like to do is to be able to commit all the file only if the main file has been modify. That why I'm talking of a conditionnal commit. 

Is there a way to do something like that?
Does anyone have a idea?

Thanks for your help.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1389316

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Conditionnal commit

Posted by Eric Johnson <er...@tibco.com>.
Yes - you could put a pre-commit hook script that verifies that the
primary file is included in the commit transaction, and if it isn't,
fail the commit.

-Eric.

webpost@tigris.org wrote:
> Hi,
>
> I am using svn to keep track of the evolution of a reference database. This database will be use by many users. The problem is that the software use to consult or modify the database, modify some of the files under revision even if no important modification has been made.
> The reference database is compose of a main file and a folder with many simple file. 
> So, what I would like to do is to be able to commit all the file only if the main file has been modify. That why I'm talking of a conditionnal commit. 
>
> Is there a way to do something like that?
> Does anyone have a idea?
>
> Thanks for your help.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1389316
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1390573

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].