info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to release - why?


From: Larry Jones
Subject: Re: Unable to release - why?
Date: Fri, 26 Aug 2005 10:44:42 -0400 (EDT)

Doug Lee writes:
> 
>  So now I suspect popen problems, problems popping a shell, etc.
>  Other cvs commands work fine.  I can run shells and subcommands from
>  within vim though.  I've now tried `cvs release' commands from both
>  tcsh and bash; no luck.

Try applying the following patch -- the exit status may provide a clue
as to what's going wrong.

Index: release.c
===================================================================
RCS file: /cvsroot/cvs/ccvs/src/release.c,v
retrieving revision 1.48.6.8
diff -u -u -r1.48.6.8 release.c
--- release.c   12 Jul 2005 14:07:54 -0000      1.48.6.8
+++ release.c   26 Aug 2005 14:42:06 -0000
@@ -192,7 +192,7 @@
 
        if (!really_quiet)
        {
-           int line_length;
+           int line_length, status;
 
            /* The "release" command piggybacks on "update", which
               does the real work of finding out if anything is not
@@ -219,9 +219,10 @@
               complain and go on to the next arg.  Especially, we do
               not want to delete the local copy, since it's obviously
               not what the user thinks it is.  */
-           if ((pclose (fp)) != 0)
+           status = pclose (fp);
+           if (status != 0)
            {
-               error (0, 0, "unable to release `%s'", thisarg);
+               error (0, 0, "unable to release `%s' (%d)", thisarg, status);
                if (restore_cwd (&cwd, NULL))
                    error_exit ();
                continue;

-Larry Jones

I stand FIRM in my belief of what's right!  I REFUSE to
compromise my principles! -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]