Lines Matching refs:sr

150 	struct statusrec *sr;
159 while ((ret = status_get(st, NULL, 0, 0, &sr)) == 1) {
160 switch (sr->sr_type) {
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);
199 error = lister_dorcsdead(l, coll, sr);
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))
255 xasprintf(&path, "%s/%s", coll->co_prefix, sr->sr_file);
282 error = proto_printf(wr, "F %s %F\n", pathlast(sr->sr_file),
291 error = proto_printf(wr, "D %s\n", pathlast(sr->sr_file));
299 lister_dodirup(struct lister *l, struct coll *coll, struct statusrec *sr,
313 fa = sr->sr_clientattr;
316 fa2 = sr->sr_clientattr;
335 lister_dofile(struct lister *l, struct coll *coll, struct statusrec *sr)
344 if (!globtree_test(coll->co_filefilter, sr->sr_file))
352 path = checkoutpath(coll->co_prefix, sr->sr_file);
356 "Invalid filename \"%s\"", spath, sr->sr_file);
375 fa = sr->sr_clientattr;
377 fa2 = fattr_forcheckout(sr->sr_serverattr, coll->co_umask);
378 if (!fattr_equal(fa, sr->sr_clientattr) || !fattr_equal(fa, fa2) ||
379 strcmp(coll->co_tag, sr->sr_tag) != 0 ||
380 strcmp(coll->co_date, sr->sr_date) != 0) {
395 sendattr = sr->sr_serverattr;
401 error = proto_printf(wr, "F %s %F\n", pathlast(sr->sr_file), sendattr,
410 lister_dorcsfile(struct lister *l, struct coll *coll, struct statusrec *sr)
420 if (!globtree_test(coll->co_filefilter, sr->sr_file))
425 path = cvspath(coll->co_prefix, sr->sr_file, 0);
429 "Invalid filename \"%s\"", spath, sr->sr_file);
436 fa = sr->sr_clientattr;
437 if (fa != NULL && fattr_equal(fa, sr->sr_clientattr)) {
442 if (isrcs(sr->sr_file, &len) &&
455 error = proto_printf(wr, "F %s %F\n", pathlast(sr->sr_file), sendattr,
464 lister_dodead(struct lister *l, struct coll *coll, struct statusrec *sr)
473 if (!globtree_test(coll->co_filefilter, sr->sr_file))
478 path = checkoutpath(coll->co_prefix, sr->sr_file);
482 "Invalid filename \"%s\"", spath, sr->sr_file);
497 pathlast(sr->sr_file), fattr_bogus,
505 if (strcmp(coll->co_tag, sr->sr_tag) != 0 ||
506 strcmp(coll->co_date, sr->sr_date) != 0)
509 sendattr = sr->sr_serverattr;
510 error = proto_printf(wr, "f %s %F\n", pathlast(sr->sr_file), sendattr,
519 lister_dorcsdead(struct lister *l, struct coll *coll, struct statusrec *sr)
529 if (!globtree_test(coll->co_filefilter, sr->sr_file))
534 path = cvspath(coll->co_prefix, sr->sr_file, 1);
538 "Invalid filename \"%s\"", spath, sr->sr_file);
545 fa = sr->sr_clientattr;
546 if (fattr_equal(fa, sr->sr_clientattr)) {
551 if (isrcs(sr->sr_file, &len) &&
564 error = proto_printf(wr, "f %s %F\n", pathlast(sr->sr_file), sendattr,