You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Christoph Bartoschek <ba...@or.uni-bonn.de> on 2008/04/03 13:04:19 UTC
Let svn commit ingore files
Hi,
is there a solution implemented in subversion for the following FAQ:
http://subversion.tigris.org/faq.html#ignore-commit
I cannot use the solution presented in the FAQ. Did subversion gain support
for a sane solution? I've seen proposals to add a svn:template keyword. Is
such a thing implemented?
Christoph Bartoschek
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Let svn commit ingore files
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 3, 2008, at 09:47, John Peacock wrote:
> Christoph Bartoschek wrote:
>
>> We have no control over the build tool. Additonally my use case
>> does not involve template files. I've changed files and links of
>> the official project to be able to compile it on my notebook. This
>> changes should not be commited to because they would break
>> everything for other users.
>
> It sounds like you want to have a private branch for your local
> changes that would interfere with the upstream users. You may want
> to consider installing SVK, which works particularly well in this
> respect (especially with a disconnected notebook). You still need
> to take some care when merging back to the mirrored repo, so that
> only the appropriate changes get committed back.
>
> One nice thing about SVK is that when you are writing a commit
> message, you can delete files from "below the line" and SVK
> actually pays attention and doesn't commit those files. Thus you
> could keep those changed files uncommitted in your local WC
> indefinitely (as long as you remembered to ignore them each time).
Or maybe you want to treat it as a vendor branch?
http://svnbook.red-bean.com/en/1.4/svn.advanced.vendorbr.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Let svn commit ingore files
Posted by John Peacock <jo...@havurah-software.org>.
Christoph Bartoschek wrote:
> We have no control over the build tool. Additonally my use case does not
> involve template files. I've changed files and links of the official project
> to be able to compile it on my notebook. This changes should not be commited
> to because they would break everything for other users.
It sounds like you want to have a private branch for your local changes
that would interfere with the upstream users. You may want to consider
installing SVK, which works particularly well in this respect
(especially with a disconnected notebook). You still need to take some
care when merging back to the mirrored repo, so that only the
appropriate changes get committed back.
One nice thing about SVK is that when you are writing a commit message,
you can delete files from "below the line" and SVK actually pays
attention and doesn't commit those files. Thus you could keep those
changed files uncommitted in your local WC indefinitely (as long as you
remembered to ignore them each time).
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Let svn commit ingore files
Posted by Matt imMute Sickler <im...@msk4.ath.cx>.
Christoph Bartoschek wrote:
> Am Donnerstag, 3. April 2008 schrieb John Peacock:
>> Christoph Bartoschek wrote:
>>> I cannot use the solution presented in the FAQ. Did subversion gain
>>> support for a sane solution? I've seen proposals to add a svn:template
>>> keyword. Is such a thing implemented?
>> Nothing has changed (which is why the FAQ answer exists). This is
>> really a client-side issue that is surprisingly subtle to resolve in a
>> secure fashion. It is better to implement the solution given in the FAQ
>> you cited into your build tool (if required file doesn't exist, copy the
>> template file and error out with a message to perform the local update).
>
> We have no control over the build tool. Additonally my use case does not
> involve template files. I've changed files and links of the official project
> to be able to compile it on my notebook. This changes should not be commited
> to because they would break everything for other users.
>
> One reason why the official project will not change its policy is that the
> current approach is already configurable. In the AFS filesystem links with
> the target @sys can be used for system specific configurations. Unfortunately
> NFS and most Linux filesystem do not support this. Here one has to change the
> links for each system.
>
> Greetings
> Christoph
No, subversion has not implemented this. I do not believe the devs have
it very high on their todo list considering the easy solution that
exists. If that solution doesn't work, then use the other one: a
pre-commit hook that denies all commits that try to change specified
files. IIRC, a .py exists in contrib/ that does that.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Let svn commit ingore files
Posted by Christoph Bartoschek <ba...@or.uni-bonn.de>.
Am Donnerstag, 3. April 2008 schrieb John Peacock:
> Christoph Bartoschek wrote:
> > I cannot use the solution presented in the FAQ. Did subversion gain
> > support for a sane solution? I've seen proposals to add a svn:template
> > keyword. Is such a thing implemented?
>
> Nothing has changed (which is why the FAQ answer exists). This is
> really a client-side issue that is surprisingly subtle to resolve in a
> secure fashion. It is better to implement the solution given in the FAQ
> you cited into your build tool (if required file doesn't exist, copy the
> template file and error out with a message to perform the local update).
We have no control over the build tool. Additonally my use case does not
involve template files. I've changed files and links of the official project
to be able to compile it on my notebook. This changes should not be commited
to because they would break everything for other users.
One reason why the official project will not change its policy is that the
current approach is already configurable. In the AFS filesystem links with
the target @sys can be used for system specific configurations. Unfortunately
NFS and most Linux filesystem do not support this. Here one has to change the
links for each system.
Greetings
Christoph
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Let svn commit ingore files
Posted by John Peacock <jo...@havurah-software.org>.
Christoph Bartoschek wrote:
> I cannot use the solution presented in the FAQ. Did subversion gain support
> for a sane solution? I've seen proposals to add a svn:template keyword. Is
> such a thing implemented?
Nothing has changed (which is why the FAQ answer exists). This is
really a client-side issue that is surprisingly subtle to resolve in a
secure fashion. It is better to implement the solution given in the FAQ
you cited into your build tool (if required file doesn't exist, copy the
template file and error out with a message to perform the local update).
Sorry
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org