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

Re: Temporary commit block on a file

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2007-10-12 09:07:41 CEST

On Thursday 11 October 2007 17:29, Ajay Gautam wrote:
> Here is what I need:
> The file in question is one that hold valuable system properties.
> I modify this file to debug a specific issue.
> (Make a mental note to revert this file before I commit).
>
> Unfortunately, my mental notes aren't enforced properly. More likely
> than not, I would end up committing this file, and later on (who know
> if ever), I will have to revert my changes (sigh)

In that case, I'd say that your workflow is flawed. The frontend I use gives
you means to get a diff from the checkin dialog and a list of checkers to
select which files to check in at all. Looking at the changes you made before
checking them in and possibly backing out is what you should get used to.

Nonetheless, here's a hack for you:
 
  svn move important.config important.config.nocheckin
  mv important.config.nocheckin important.config

If you try to check this in, Subversion will complain because the file it was
looking for was simply not there. Use 'svn revert' to revert this. Regarding
configfiles which are customised anyway, we rather commit a template only
which the user can then copy to the real location.

Uli

-- 
Sator Laser GmbH
Geschäftsführer: Ronald Boers, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 12 09:08:52 2007

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.