diff options
author | joe <joe@FreeBSD.org> | 2001-12-04 03:48:19 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-12-04 03:48:19 +0800 |
commit | bc27881e6e76d79e85304b4c3c792364cf98a3e2 (patch) | |
tree | 5782596d89883701bfe2304c87897b851651293a /CVSROOT | |
parent | 57e05856685e1db86bd3a6c7c7bbd4c202d21fff (diff) | |
download | freebsd-ports-graphics-bc27881e6e76d79e85304b4c3c792364cf98a3e2.tar.gz freebsd-ports-graphics-bc27881e6e76d79e85304b4c3c792364cf98a3e2.tar.zst freebsd-ports-graphics-bc27881e6e76d79e85304b4c3c792364cf98a3e2.zip |
Enhance the various error messages by including the full path to
the file, and not only the filename, which is handy when you can
have multiple files in different directories with the same name,
as it's common in web projects.
Submitted by: jesper
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/commit_prep.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CVSROOT/commit_prep.pl b/CVSROOT/commit_prep.pl index 82f1ba18ecb..fd07cb45250 100755 --- a/CVSROOT/commit_prep.pl +++ b/CVSROOT/commit_prep.pl @@ -143,13 +143,13 @@ sub check_version { # The file should have had an rcsid in it! unless ($found_rcsid) { - printf($NoId, $filename); + printf($NoId, "$directory/$filename"); return(1); } # Is the rcsid corrupt? unless ($rcsid =~ /\$$HEADER(: ([^\$]* )?)?\$/) { - printf($BadId, $filename); + printf($BadId, "$directory/$filename"); return(1); } $rcsid_info = $2 || ""; @@ -163,7 +163,7 @@ sub check_version { # A new file should have an unexpanded rcsid. if ($lastversion eq '0') { unless ($rcsid_info eq "") { - printf($NoName, $filename); + printf($NoName, "$directory/$filename"); return(1); } return(0); @@ -178,7 +178,7 @@ sub check_version { # # Don't know whether to allow or trap this. It means # # one could bypass the version spam checks by simply # # using a bare tag. -# printf($DelPath, $filename); +# printf($DelPath, "$directory/$filename"); # return(1); } @@ -197,7 +197,7 @@ sub check_version { # Check that the version in the rcsid matches reality. if ($lastversion ne $version) { printf($BadVersion, $filename, $lastversion, - $version, $filename); + $version, "$directory/$filename"); return(1); } return(0); |