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

Re: svn:ignore of checked in files and commit

From: Branko ─îibej <brane_at_apache.org>
Date: Wed, 15 Apr 2020 13:53:07 +0200

On 15.04.2020 13:27, Attila Kinali wrote:
> Hi,
>
> In the days of old, like several years back...
> When we had files that needed to be edited localy for each user/developer,
> we used to check them in normally, then set svn:ignore to ignore those
> files. This would result `svn commit` to ignore those files unless
> forced to by explicitly mentioning the filename (e.g., `svn commit ignoredfile`).

I don't remember svn:ignore *ever* working the way you describe. Can you
tell us which version of Subversion you were using? Are you absolutely
sure it wasn't modified to behave as you describe?

> Apparently this doesn't work anymore and svn commit happily still
> uses the ignored file and commits it... causing problems.
>
> Is there a specific reason this behaviour changed?

Like I said, it did not change. Files that are already
version-controlled cannot be ignored. This was part of the original
svn:ignore design spec, and the behaviour is actually based on .cvsignore.

> Is there a workaround that we can use?

Sure, don't commit the files that you don't want in the repository.
Instead, create a template that each user can rename to an (ignored)
local name.

> Shall I submit a bugreport for this?

It's not a bug.

-- Brane
Received on 2020-04-15 13:53:11 CEST

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