Subversion – ignoring files in a directory

Today I figured out how to handle ignoring certain file types when doing a status check. There are 2 methods of doing it. One is in the global configuration, namely the config file stored in Application Data\Subversion (assuming windows).

The other is to define a value for the property on a directory, and it will only affect that directory. The global would have to be set by all users. The property on a directory only has to be set once, and then everyone that checkouts out the directory will have the same ignores. The only problem is it appears the ignore only works on the directory it’s assigned to. It doesn’t affect sub-directories (or at least I haven’t figured out how to have it do that just yet).

Anyhow, the procedure is quite simple. Using svn propedit svn:ignore {directory} and it will bring up a file in your defined editor. If the directory already has values for the property, these will show in the file. Otherwise it will start empty.

Then you just list the filetypes and directory names you want ignored, each on one line. It appears to be case sensitive, so you have to do *.bak *.BAK etc to ensure full coverage.

As I said, it also appears necessary to do it on sub-directories as the property appears to only apply to the current directory.

More on Subversion

Been using it a bit more, so have some further comments. It’s definitely setup to allow for offline work. Basically having a local copy of the repository attached to your working directory means all diffs and reverts could be done without having server access. In my case, this doesn’t matter as I’m running locally, but could be very useful if you wanted to do some work away from server access.

One shortcoming I’ve come across is removing a group of files. Quite often you will delete a file outside Subversion, and then want to remove all the deleted files from version control. With CVS, all you did was do a cvs remove in the directory, and it would schedule all the missing files for removal. Subversion lists the missing files, but I haven’t found a way to tell it with one command to remove all the missing files from version control. I have to do a svn delete on each file. Hopefully I’ll find a way to do this.

Version Control – Subversion

Just recently started using a CVS replacement called Subversion. Thus far, seems very good.

It’s big advantage is it recognizes directories as well as files. Uses binary differences for binary files, rather than storing a completely new copy of the file. Allows for renaming/copying of files and directories. Understands what deletion of a directory means.

The other big thing is it understands a big change. i.e. it treats a commit of multiple files as a unit of work. The revision numbers are updated for an entire directory when a commit is done, and are global across a repository. This means can see all the files changed for a given commit, rather than CVSs approach of merely incrementing the revision of each file individually.

The claim is that Subversion is more network friendly. It does this by basically keeping a local copy of the files in your working directory. The feeling is that hard drive space is really inexpensive, and network traffic is best minimized.

Supports branching more elegantly than CVS ever did. A branch is created by making a copy of a repository directory. Has commands for retrieving some changes and merging, but I haven’t used this portion yet, so don’t know how useful it is.

There is a tool for converting a CVS repository to an SVN one. I tried running it, but I must have mixed up my tags when I originally created my repository as it complained. Since I don’t really care that much about my change history, I didn’t bother trying to track it down to get my repository imported to SVN. I just started fresh.

Well worth a look.

Snapstream Beyond TV

Downloaded the trial of Beyond TV 3 recently, as they now have TV listings for Canada. Was very impressed, but decided that until my VCRs die, I don’t really need it.

It installed without a hitch, got the listings downloaded no problem. Allows for defining recordings for all episodes, 1 episode or only new episodes of a show. Can also do remote recordings via their website. Didn’t test this out but appears you can tell their servers to record a program, and then can download it later to your machine.

Another nice feature that I didn’t test is setting a recording remotely. Supposedly you can use a web browser and define a recording on your machine. Of course you have to have your firewalls defined to allow the correct port communications through…

The software works very well, and is well defined. The online guide is easy to read on a tv. It allows for recording one show and watching another, or watching a show while it is being recorded (i.e. starting to watch a show that has already been recorded for some length of time, but from the beginning). The Multimedia Centre that comes with ATI cards doesn’t allow multi-tasking.

It remembers if you’ve started watching a show, so when you request to watch it again, it asks if you want to start where you left off or at the beginning.

Builtin commercial advance. After recording a show, it analyzes the material for commercial breaks and inserts indices. Then when you’re watching it you can skip to the next index mark when a commercial starts. Worked very well on the 6 shows I used as a test.

Two weaknesses at the moment. Currently, it only supports one tuner, so you can’t record more than 1 show at a time. Snapstream states this is a planned enhancement.

The other weakness is defining a custom recording period. I couldn’t find a way to do this, and it was very annoying. I like to watch Daily Planet on Discovery, but it’s on 3 times a day. My only options with Snapstream were to record all episodes (I don’t need to record 3 copies/day) or only new episodes. Unfortunately all episodes of Daily Planet are listed as repeats in Snapstreams guide, so none would be recorded.

Overall a very good product.

ATI Remote Wonder II

Finally received my Remote Wonder II from ATI. More modern appearance, and a few extra buttons in comparison to the Remote Wonder that came with my video card.

Had troubles installing it, but finally got it figured out. Have to use the drivers from the CD that came with the AIW 9600 Pro, or else it won’t work. Also, mine came with dead batteries, so I had to put some batteries in it first.

As far as the extended range, I haven’t done any extensive testing yet.

I have my pc in the basement, and use the remote in the living room. I’m about 20 feet away. I find that sometimes the remote won’t work, but if I move it 1 inch to the left or right, it does work. Not sure why that is, but…