[CVS] Modify a small bug in CVS Utilities: CVSCHROOT

xiaoxiao2021-03-06  146

CVS Utilities:

http://www.red-bean.com/cvsutils/

Modify a bug

A legitimate CVSROOT can be: psrver: myhan@192.168.10.20: 2404 / home / cvsroot

Here, the CVS server address is followed by the top port number.

This approach is often used if you start multiple warehouses simultaneously on a machine.

For convenience, I use the CVSCHROOT program provided by CVS Utilities to change the cvsroot of the project in my current work.

But the problem that the input cvsroot does not know, so do the following modification:

--- cvschroot.orig 2004-08-12 17: 10: 11.000000000 0800

cvschroot 2004-08-12 16: 49: 58.000000000 0800

@@ -76, 7 76 ,7 @@

Sub split_root ($)

{

MY $ RES;

- IF (Shift (@_) = ~ m {^ ([^] :)? (/ [^: @] ) $}) {

IF (Shift (@_) = ~ m {^ ([^] : [/ D] *)? (/ [^: @] ) $}) {

$ RES = $ 2;

} else {

Error Shift (@_). "not recognized";

转载请注明原文地址:https://www.9cbs.com/read-127951.html

New Post(0)