Lines Matching refs:coll

58 static int	lister_coll(struct lister *, struct coll *, struct status *);
59 static int lister_dodirdown(struct lister *, struct coll *,
61 static int lister_dodirup(struct lister *, struct coll *,
63 static int lister_dofile(struct lister *, struct coll *,
65 static int lister_dodead(struct lister *, struct coll *,
67 static int lister_dorcsfile(struct lister *, struct coll *,
69 static int lister_dorcsdead(struct lister *, struct coll *,
112 struct coll *coll;
117 STAILQ_FOREACH(coll, &config->colls, co_next) {
118 if (coll->co_options & CO_SKIP)
120 st = status_open(coll, -1, &l->errmsg);
123 error = proto_printf(wr, "COLL %s %s\n", coll->co_name,
124 coll->co_release);
128 if (coll->co_options & CO_COMPRESS)
130 error = lister_coll(l, coll, st);
134 if (coll->co_options & CO_COMPRESS)
146 lister_coll(struct lister *l, struct coll *coll, struct status *st)
164 error = lister_dodirdown(l, coll, sr, as);
173 error = lister_dodirup(l, coll, sr, as);
184 error = lister_dofile(l, coll, sr);
191 error = lister_dodead(l, coll, sr);
198 if (!(coll->co_options & CO_CHECKOUTMODE)) {
199 error = lister_dorcsdead(l, coll, sr);
207 if (!(coll->co_options & CO_CHECKOUTMODE)) {
208 error = lister_dorcsfile(l, coll, sr);
239 lister_dodirdown(struct lister *l, struct coll *coll, struct statusrec *sr,
250 if (!globtree_test(coll->co_dirfilter, sr->sr_file))
252 if (coll->co_options & CO_TRUSTSTATUSFILE) {
255 xasprintf(&path, "%s/%s", coll->co_prefix, sr->sr_file);
283 fattr_bogus, config->fasupport, coll->co_attrignore);
299 lister_dodirup(struct lister *l, struct coll *coll, struct statusrec *sr,
311 if (coll->co_options & CO_TRUSTSTATUSFILE) {
322 coll->co_attrignore);
325 if (!(coll->co_options & CO_TRUSTSTATUSFILE))
335 lister_dofile(struct lister *l, struct coll *coll, struct statusrec *sr)
344 if (!globtree_test(coll->co_filefilter, sr->sr_file))
351 if (!(coll->co_options & CO_TRUSTSTATUSFILE)) {
352 path = checkoutpath(coll->co_prefix, sr->sr_file);
354 spath = coll_statuspath(coll);
377 fa2 = fattr_forcheckout(sr->sr_serverattr, coll->co_umask);
379 strcmp(coll->co_tag, sr->sr_tag) != 0 ||
380 strcmp(coll->co_date, sr->sr_date) != 0) {
402 config->fasupport, coll->co_attrignore);
410 lister_dorcsfile(struct lister *l, struct coll *coll, struct statusrec *sr)
420 if (!globtree_test(coll->co_filefilter, sr->sr_file))
424 if (!(coll->co_options & CO_TRUSTSTATUSFILE)) {
425 path = cvspath(coll->co_prefix, sr->sr_file, 0);
427 spath = coll_statuspath(coll);
443 !(coll->co_options & CO_NORCS) &&
444 !(coll->co_options & CO_STRICTCHECKRCS)) {
456 config->fasupport, coll->co_attrignore);
464 lister_dodead(struct lister *l, struct coll *coll, struct statusrec *sr)
473 if (!globtree_test(coll->co_filefilter, sr->sr_file))
477 if (!(coll->co_options & CO_TRUSTSTATUSFILE)) {
478 path = checkoutpath(coll->co_prefix, sr->sr_file);
480 spath = coll_statuspath(coll);
498 config->fasupport, coll->co_attrignore);
505 if (strcmp(coll->co_tag, sr->sr_tag) != 0 ||
506 strcmp(coll->co_date, sr->sr_date) != 0)
511 config->fasupport, coll->co_attrignore);
519 lister_dorcsdead(struct lister *l, struct coll *coll, struct statusrec *sr)
529 if (!globtree_test(coll->co_filefilter, sr->sr_file))
533 if (!(coll->co_options & CO_TRUSTSTATUSFILE)) {
534 path = cvspath(coll->co_prefix, sr->sr_file, 1);
536 spath = coll_statuspath(coll);
552 !(coll->co_options & CO_NORCS) &&
553 !(coll->co_options & CO_STRICTCHECKRCS)) {
565 config->fasupport, coll->co_attrignore);