Deleted Added
full compact
client.c (107487) client.c (109660)
1/* JT thinks BeOS is worth the trouble. */
2
3/* CVS client-related stuff.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. */
14
15/*
1/* JT thinks BeOS is worth the trouble. */
2
3/* CVS client-related stuff.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. */
14
15/*
16 * $FreeBSD: head/contrib/cvs/src/client.c 107487 2002-12-02 03:17:49Z peter $
16 * $FreeBSD: head/contrib/cvs/src/client.c 109660 2003-01-21 22:01:38Z peter $
17 */
18
19#ifdef HAVE_CONFIG_H
20# include "config.h"
21#endif /* HAVE_CONFIG_H */
22
23#include <assert.h>
24#include "cvs.h"

--- 2149 unchanged lines hidden (view full) ---

2174 else
2175 file_timestamp = NULL;
2176
2177 /*
2178 * These special version numbers signify that it is not up to
2179 * date. Create a dummy timestamp which will never compare
2180 * equal to the timestamp of the file.
2181 */
17 */
18
19#ifdef HAVE_CONFIG_H
20# include "config.h"
21#endif /* HAVE_CONFIG_H */
22
23#include <assert.h>
24#include "cvs.h"

--- 2149 unchanged lines hidden (view full) ---

2174 else
2175 file_timestamp = NULL;
2176
2177 /*
2178 * These special version numbers signify that it is not up to
2179 * date. Create a dummy timestamp which will never compare
2180 * equal to the timestamp of the file.
2181 */
2182 if (vn[0] == '\0' || vn[0] == '0' || vn[0] == '-')
2182 if (vn[0] == '\0' || strcmp (vn, "0") == 0 || vn[0] == '-')
2183 local_timestamp = "dummy timestamp";
2184 else if (local_timestamp == NULL)
2185 {
2186 local_timestamp = file_timestamp;
2187
2188 /* Checking for command_name of "commit" doesn't seem like
2189 the cleanest way to handle this, but it seem to roughly
2190 parallel what the :local: code which calls

--- 809 unchanged lines hidden (view full) ---

3000 in REPOSITORY, or the removal of those path
3001 elements mean that we "step above"
3002 current_parsed_root->directory, set toplevel_repos to
3003 current_parsed_root->directory. */
3004 if ((repository_len > update_dir_len)
3005 && (strcmp (repository + repository_len - update_dir_len,
3006 update_dir) == 0)
3007 /* TOPLEVEL_REPOS shouldn't be above current_parsed_root->directory */
2183 local_timestamp = "dummy timestamp";
2184 else if (local_timestamp == NULL)
2185 {
2186 local_timestamp = file_timestamp;
2187
2188 /* Checking for command_name of "commit" doesn't seem like
2189 the cleanest way to handle this, but it seem to roughly
2190 parallel what the :local: code which calls

--- 809 unchanged lines hidden (view full) ---

3000 in REPOSITORY, or the removal of those path
3001 elements mean that we "step above"
3002 current_parsed_root->directory, set toplevel_repos to
3003 current_parsed_root->directory. */
3004 if ((repository_len > update_dir_len)
3005 && (strcmp (repository + repository_len - update_dir_len,
3006 update_dir) == 0)
3007 /* TOPLEVEL_REPOS shouldn't be above current_parsed_root->directory */
3008 && ((repository_len - update_dir_len)
3008 && ((size_t)(repository_len - update_dir_len)
3009 > strlen (current_parsed_root->directory)))
3010 {
3011 /* The repository name contains UPDATE_DIR. Set
3012 toplevel_repos to the repository name without
3013 UPDATE_DIR. */
3014
3015 toplevel_repos = xmalloc (repository_len - update_dir_len);
3016 /* Note that we don't copy the trailing '/'. */

--- 2614 unchanged lines hidden (view full) ---

5631 */
5632 args.build_dirs = flags & SEND_BUILD_DIRS;
5633 args.force = flags & SEND_FORCE;
5634 args.no_contents = flags & SEND_NO_CONTENTS;
5635 args.backup_modified = flags & BACKUP_MODIFIED_FILES;
5636 err = start_recursion
5637 (send_fileproc, send_filesdoneproc,
5638 send_dirent_proc, send_dirleave_proc, (void *) &args,
3009 > strlen (current_parsed_root->directory)))
3010 {
3011 /* The repository name contains UPDATE_DIR. Set
3012 toplevel_repos to the repository name without
3013 UPDATE_DIR. */
3014
3015 toplevel_repos = xmalloc (repository_len - update_dir_len);
3016 /* Note that we don't copy the trailing '/'. */

--- 2614 unchanged lines hidden (view full) ---

5631 */
5632 args.build_dirs = flags & SEND_BUILD_DIRS;
5633 args.force = flags & SEND_FORCE;
5634 args.no_contents = flags & SEND_NO_CONTENTS;
5635 args.backup_modified = flags & BACKUP_MODIFIED_FILES;
5636 err = start_recursion
5637 (send_fileproc, send_filesdoneproc,
5638 send_dirent_proc, send_dirleave_proc, (void *) &args,
5639 argc, argv, local, W_LOCAL, aflag, LOCK_NONE, (char *)NULL, 0);
5639 argc, argv, local, W_LOCAL, aflag, CVS_LOCK_NONE, (char *)NULL, 0);
5640 if (err)
5641 error_exit ();
5642 if (toplevel_repos == NULL)
5643 /*
5644 * This happens if we are not processing any files,
5645 * or for checkouts in directories without any existing stuff
5646 * checked out. The following assignment is correct for the
5647 * latter case; I don't think toplevel_repos matters for the

--- 308 unchanged lines hidden ---
5640 if (err)
5641 error_exit ();
5642 if (toplevel_repos == NULL)
5643 /*
5644 * This happens if we are not processing any files,
5645 * or for checkouts in directories without any existing stuff
5646 * checked out. The following assignment is correct for the
5647 * latter case; I don't think toplevel_repos matters for the

--- 308 unchanged lines hidden ---