[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cvs-cvs] Changes to ccvs/src/commit.c
From: |
Larry Jones |
Subject: |
[Cvs-cvs] Changes to ccvs/src/commit.c |
Date: |
Fri, 02 Sep 2005 17:51:12 -0400 |
Index: ccvs/src/commit.c
diff -u ccvs/src/commit.c:1.253 ccvs/src/commit.c:1.254
--- ccvs/src/commit.c:1.253 Tue Aug 30 01:55:19 2005
+++ ccvs/src/commit.c Fri Sep 2 21:51:08 2005
@@ -355,12 +355,8 @@
/* FIXME: Shouldn't this check be much more closely related to the
readonly user stuff (CVSROOT/readers, &c). That is, why should
root be able to "cvs init", "cvs import", &c, but not "cvs ci"? */
- if (geteuid () == (uid_t) 0
-# ifdef CLIENT_SUPPORT
- /* Who we are on the client side doesn't affect logging. */
- && !current_parsed_root->isremote
-# endif
- )
+ /* Who we are on the client side doesn't affect logging. */
+ if (geteuid () == (uid_t) 0 && !current_parsed_root->isremote)
{
struct passwd *pw;
@@ -701,14 +697,10 @@
dellist (&mulist);
/* see if we need to sleep before returning to avoid time-stamp races */
- if (
-#ifdef SERVER_SUPPORT
- /* But only sleep on the client. */
- !server_active &&
-#endif
- last_register_time
- )
- sleep_past (last_register_time);
+ if (!server_active && last_register_time)
+ {
+ sleep_past (last_register_time);
+ }
return err;
}
@@ -1383,11 +1375,7 @@
if (!got_message)
{
got_message = 1;
- if (
-#ifdef SERVER_SUPPORT
- !server_active &&
-#endif
- use_editor)
+ if (!server_active && use_editor)
do_editor (finfo->update_dir, &saved_message,
finfo->repository, ulist);
do_verify (&saved_message, finfo->repository, ulist);
@@ -1671,11 +1659,7 @@
/* get commit message */
got_message = 1;
real_repos = Name_Repository (dir, update_dir);
- if (
-#ifdef SERVER_SUPPORT
- !server_active &&
-#endif
- use_editor)
+ if (!server_active && use_editor)
do_editor (update_dir, &saved_message, real_repos, ulist);
do_verify (&saved_message, real_repos, ulist);
free (real_repos);
@@ -2151,7 +2135,8 @@
/* and lock it */
if (lock_RCS (file, rcs, rev, repository))
{
- error (0, 0, "cannot lock `%s'.", rcs->path);
+ error (0, 0, "cannot lock revision %s in `%s'.",
+ rev ? rev : tag ? tag : "HEAD", rcs->path);
if (rev != NULL)
free (rev);
goto out;
@@ -2214,7 +2199,8 @@
/* and lock it once again. */
if (lock_RCS (file, rcs, NULL, repository))
{
- error (0, 0, "cannot lock `%s'.", rcs->path);
+ error (0, 0, "cannot lock initial revision in `%s'.",
+ rcs->path);
goto out;
}
}
@@ -2322,7 +2308,7 @@
/* lock the branch. (stubbed branches need not be locked.) */
if (lock_RCS (file, rcs, NULL, repository))
{
- error (0, 0, "cannot lock `%s'.", rcs->path);
+ error (0, 0, "cannot lock head revision in `%s'.", rcs->path);
goto out;
}
}
- [Cvs-cvs] Changes to ccvs/src/commit.c,
Larry Jones <=