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

exclude parts of a file from version control?

From: Jan Hendrik <list.jan.hendrik_at_gmail.com>
Date: Tue, 5 Aug 2008 09:27:56 +0200

Hi all,

I am certain this is impossible, but I'd like to ask anyway:

can parts of a file be marked to be excluded from versioning? Like
a comment in code the parser ignores?

I have a Perl script that takes an input file (actually a listing of
items a Word macro has preformatted for HTML), extracts several
things for title, description, keyword tags, adds an illustration and
some other things, and creates a separate file for each item.
Naturally it works best if the items in the listing have a good deal of
similarity, and likewise in every case of use there have to be some
adjustments made to the Perl code to meet specific requirements.
However, there is no reason to have these adjustments ending up
in the repository. Some of these actually enhance the script for
future abuse though and should be versioned yet, as I would like
the script as such.

Part of these adjustment things could be moved into a separate
config file easily, but not all, or the config would become quite
clumsy (and the script blown up with lots of use cases now
handled by just moving around a few lines of PRINT code).

Also the actual script could be made a template which is under
version control, having users to copy it before using it. But

A) would this make things more complicated as most of the users
here already are not familiar with Perl and another hurdle of using
the script would only have them doing things manually, item by
item.

B) adjustments which should be kept as enhancements are likely
to be lost as they would have to be copied over to the template.

So once more my question:

can certain parts of a file be marked to be excluded from
versioning? Like a comment which the parser (here: SVN diff etc.)
excludes?

TIA

Jan Hendrik
---------------------------------------
Freedom quote:

     Ein Raum ohne Bücher ist ein Körper ohne Seele.
               -- Marcus Tullius Cicero

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-05 09:26:56 CEST

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.