[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: CVS Shell Extension
From: |
Steven Tryon |
Subject: |
RE: CVS Shell Extension |
Date: |
07 Dec 2002 15:10:16 -0500 |
Mark,
Nifty. There appear to be some CVS version dependencies (I have
1.11.1p1 on Linux). The original script was looking for a date after
the "Working revision". I wasn't seeing that so I modified that line.
When I had a file open in vim, cvsdir didn't like the "?" line it got
back from "cvs -Q status -l" so I had it skip such lines as well as
blanks.
My Perl is pretty rudimentary, so I'm not up for making large changes.
With these it works pretty well for me.
Steve
address@hidden bin]$ diff cvsdir_original cvsdir
89a90
> print "\n";
173a175
> next if $Line =~ /^\?.*$/; # skip lines starting with ?
195c197
< if( $Line =~ /^\s+Working
revision:\s+([0-9.]+)\s+(.*?)\s*$/ ) {
---
> if( $Line =~ /^\s+Working revision:\s+([0-9.]+)\s*$/ ) {
198c200
< $rh_File->{Date} = $2;
---
> # $rh_File->{Date} = $2;
Steve
--
Steven Tryon, CIBER @ Xerox
Webmaster, Xerox Global Service Net
8*221-7719 / 585-231-7719