subb
subb

Reputation: 1568

Can I prevent push on a local repository?

Currently my setup is this :

External SVN repository --> local svn working copy, transformed in a mercurial repository --> clone of this repository as subrepo in my application repo

The external SVN is a library which I don't have any privilege on.

Basically, I want to prevent pushing changes to my svn/hg hybrid repository, so the changes come only from the library's svn repository.

Is this possible?

Upvotes: 0

Views: 191

Answers (1)

vsh
vsh

Reputation: 229

You can use hooks in mercurial. For example in svnhgrepository/.hg/hgrc file, the following section will cause push from another repo to fail (using the prechangegroup hook).

[hooks]
prechangegroup = false

Upvotes: 1

Related Questions