How do we avoid losing changes?

greenspun.com : LUSENET : SmartPart Development : One Thread

This is a question for Steve only, at the moment.

The rules are: get CVS installed (probably as part of cygwin, see my diary at hemings.diaryland.com for lots of references.

Once CVS is set up you need to initialise the repository with cvs init.

To set up ignore lists, just add a .cvsignore file in the directory where you are importing from (various other ways of doing this).

To flag files as binary then set up a .cvswrappers file in ~.

To start working on the imported files, just delete the old ones (maybe put them in another directory for safety, preferably not below the original imported one, then cd to '..' and do a checkout - cvs checkout 'name of repository'. This should put them all back again.

-- Anonymous, February 16, 2002

Answers

Response to How do I set up source control for this project?

When it comes to uploading files to the live server it is probably worth exporting them to an upload area. This is almost like a release. The difference between checkout and export is that export does not create the CVS control directories (typically called CVS under all the 'real' directories).

-- Anonymous, February 18, 2002

Response to How do I set up source control for this project?

Steve - where will CVS reside? Presuambly on a jointly accessible, password protected web site?

-- Anonymous, February 19, 2002

Response to How do I set up source control for this project?

For the moment CVS is installed only on my PC at home - the laptop. There is a server version, but I'm using it now in its 'single host' mode. The only way of you getting your changes into it is to send me your changes by email (or similar).

I hope at some stage to get this distributed, but while we are working on our PCs at home, I'm not sure how I'm gonna do this.

-- Anonymous, February 19, 2002


I was using a repository on a remote drive accessed via a windows 98 share, and I discovered that cvs would not check in new files.

I put a question to google: 'cannot change mode' cygwin and got various answers which you can retrieve, one of which led me to make the mysterious setting:

export CYGWIN='ntsec nosmbntsec'
if you want to find out what this is all about look at http://www.cygwin.com/cygwin-ug-net/using- cygwinenv.html. . Anyhow, as if by magic it works. It is more-or-less magical to me, both the mysterious effect of an environmental var. setting and the discovery of the solution to what, a few years ago, would probably have been an insuperable problem.

-- Anonymous, February 20, 2002


This is still not very clear. It would appear that the only way of getting new sources into CVS is the import command. This is a bit confusing as if you are starting from scratch you may not have a set of sources to import. This doesn't really matter - it is perfectly OK to import an empty directory. The vendor_tag is a bit confusing though.

-- Anonymous, February 20, 2002


My question rambles on for far too long. Anyhow, as a new contribution to the process of making changes, I have set up a new user on my herts-lettings website, namely 'upload'. His home dir will hold all the changes to the asps. (I just thought that I could actually run CVS on my web server. I have telnet login, and this would allow both of us to access things like the change log for different sources, as well as the differences between versions. Comments to this thread please).

Anyhow, the current plan is to have a directory for each release/change whatever, numbered sequentially 001,002... Sources will be uploaded her by NM, downloaded by SH, tested, emailed to AS - BYU (Bob's your uncle!). Notes on how to access this ftp location are held in the Key Info page - www.stevehemingway.com/SmartPart.

-- Anonymous, February 21, 2002


I'm not sure if the ftp solution in my last reply is any good. Perhaps it would be better to stick the files under the web directory then we can embed a link directly into the comment on LUSENET with the changes.

The link http://www.herts- lettings.co.uk/~upload/002/ should show the sort of thing I have in mind.

-- Anonymous, February 21, 2002


Look on the Key info page for information about the new #ceetak channel on undernet (www.undernet.org for more details on this).

Basically this is a protected channel ('chat room') where we (steve & neil) can exchange info about what we are doing when we are simultaneously online.

I confess that setting this up was more to do with me being curious about how channel bots work on IRC than anything fully justified by a cost-benefit analysis.

-- Anonymous, February 25, 2002


Moderation questions? read the FAQ