From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24023 invoked by alias); 9 Oct 2013 17:58:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23988 invoked by uid 89); 9 Oct 2013 17:58:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plunk.org Received: from plunk.org (HELO plunk.org) (209.123.234.146) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 09 Oct 2013 17:58:21 +0000 Received: from hatch by plunk.org with local (Exim 4.76) (envelope-from ) id 1VTy7l-0006oP-Vh; Wed, 09 Oct 2013 14:04:41 -0400 Date: Wed, 09 Oct 2013 17:58:00 -0000 From: Don Hatch To: cygwin@cygwin.com Cc: Don Hatch Subject: Re: checking in >= 256k file fatally corrupts rcs file Message-ID: <20131009180441.GA24121@plunk.org> References: <20131008102204.GB9241@plunk.org> <525499E5.4090608@etr-usa.com> <20131009003055.GA30082@plunk.org> <5254B1C0.9020004@etr-usa.com> <20131009070534.GA8855@plunk.org> <52555C16.5090505@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52555C16.5090505@etr-usa.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00110.txt.bz2 On Wed, Oct 09, 2013 at 07:37:26AM -0600, Warren Young wrote: > On 10/9/2013 01:05, Don Hatch wrote: > > > >if I forget to set the variable, or set it wrong, > >or someone else doesn't know about the variable and runs into the bug, > >then corruption happens and work is irretrievably lost. > > How is this more difficult than what you're already doing, manually > rolling back to the previous version? Not necessarily more difficult, but more dangerous/fragile and therefore requiring continual attention at the user level. My preference is to not have the broken version on my system at all-- then I can relax and not be continually worrying about whether each different way I (or anyone else including root daemons) use rcs is going to somehow circumvent the environment variable and destroy more work. > > We're talking about a one-time one-line change to your .bash_profile: > > export RCS_MEM_LIMIT=10240 That assumes too much: that only one user account uses rcs (consider other users and root startup scripts and daemons), that all of my usages of rcs are through the command line (consider helper scripts and tools), and that the only command line I use is bash (it's not). Too fragile. > >(I lost a significant amount when I hit the bug). > > I assume you're talking about the record of changes between your > last backup and the current version. The last backup should be > pretty recent, so your current version shouldn't be too far > different from it. I'm not completely following what you're saying, but I believe I lost more than what you're describing. I lost the current working file (which I had just put at least a day of good work into) and the rcs file became useless for getting any previous versions, either-- I had to revert to the most recent backup of the rcs file. I don't remember precisely why I lost the working file-- I might have done a "ci" rather than a "ci -l" at some point, or it may be because I had an $id$ tag that caused the working file to be rewritten from the rcs file which no longer had good data in it. I remember at the first moment I noticed something was awry, I still had the contents of the working file in an editor buffer... not realizing the seriousness of what was going on, I exited the editor, thereby discarding the only remaining good copy of the file. Blech. Don -- Don Hatch hatch@plunk.org http://www.plunk.org/~hatch/ -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple