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

Re: Preventing a commit

From: Ivan Cenov <i_cenov_at_botevgrad.com>
Date: 2007-02-15 14:24:13 CET

Johan Appelgren ΞΑΠΙΣΑ:
> On 2/15/07, Ivan Cenov <i_cenov@botevgrad.com> wrote:
>> Hans Van Ingelgom ΞΑΠΙΣΑ:
>> > Hello,
>> >
>> > I have changed a file in my working copy to circumvent a local
>> hardware
>> > problem (more specific, I remapped a key because the original one is
>> > broken on my target). This is a change I do *not* want to commit, even
>> > accidentally. Is there any way that I can guarantee this? Or do I have
>> > to uncheck the file on every commit? I fear that eventually I will
>> > forget this.
>> >
>> > Thanks,
>> > Hans.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
>> > For additional commands, e-mail: users-help@tortoisesvn.tigris.org
>> >
>> >
>> >
>> You may put it in the ignore list, but then you may
>> forget to exclude it after you resolve your hardware problem.
>> I think you should do something outside of TSVN,
>> may be to put a note at your monitor ... :)
>
> The ignore list only works for unversioned items. So if I understand
> the problem correctly it will not work in this case.
Just checked. You are right. I did a mistake.

Another solution is to use conditional compiling:
#if defined(HARDWARE_PROBLEM)
....
#else
....
#endif

But this is not prefect too, because you change the file
and need to remember when to #define or not to #define
HARDWARE_PROBLEM in the preprocessor.
Just an idea.

-- 
Regards,
Ivan Cenov
OKTO-7 Co., Botevgrad, Bulgaria
imc@okto7.com, i_cenov@botevgrad.com
  GSM: +359 888 76 10 80
phone: +359 723 6 61 20, +359 723 6 61 61
  fax: +359 723 6 62 62
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Feb 15 14:25:14 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.