Lines Matching refs:newroot

304     cvsroot_t *newroot;  in new_cvsroot_t()  local
307 newroot = xmalloc(sizeof(cvsroot_t)); in new_cvsroot_t()
309 newroot->original = NULL; in new_cvsroot_t()
310 newroot->method = null_method; in new_cvsroot_t()
311 newroot->username = NULL; in new_cvsroot_t()
312 newroot->password = NULL; in new_cvsroot_t()
313 newroot->hostname = NULL; in new_cvsroot_t()
314 newroot->port = 0; in new_cvsroot_t()
315 newroot->directory = NULL; in new_cvsroot_t()
317 newroot->isremote = 0; in new_cvsroot_t()
320 return newroot; in new_cvsroot_t()
356 cvsroot_t *newroot; /* the new root to be returned */ local
368 newroot = new_cvsroot_t();
371 newroot->original = xstrdup (root_in);
401 newroot->method = local_method;
403 newroot->method = pserver_method;
405 newroot->method = kserver_method;
407 newroot->method = gserver_method;
409 newroot->method = server_method;
411 newroot->method = ext_method;
413 newroot->method = fork_method;
427 newroot->method = ((*cvsroot_copy != '/' && strchr (cvsroot_copy, '/'))
437 newroot->isremote = (newroot->method != local_method);
441 if ((newroot->method != local_method)
442 && (newroot->method != fork_method))
469 newroot->password = xstrdup (++q);
482 newroot->username = xstrdup (cvsroot_copy);
525 if ((newroot->port = atoi (p)) <= 0)
541 newroot->hostname = new_hostname;
546 newroot->hostname = xstrdup (cvsroot_copy);
554 newroot->directory = xstrdup(cvsroot_copy);
562 if (newroot->method != local_method)
572 if (newroot->method == fork_method)
581 if (newroot->username && ! newroot->hostname)
590 switch (newroot->method)
593 if (newroot->username || newroot->hostname)
605 if (!isabsolute (newroot->directory))
608 newroot->directory);
618 if (newroot->username || newroot->hostname)
625 if (!isabsolute (newroot->directory))
628 newroot->directory);
665 if (no_password && newroot->password)
672 if (check_hostname && !newroot->hostname)
678 if (no_port && newroot->port)
685 if (*newroot->directory == '\0')
692 return newroot;
695 free_cvsroot_t (newroot);
758 cvsroot_t *newroot = new_cvsroot_t(); local
760 newroot->original = xstrdup(dir);
761 newroot->method = local_method;
762 newroot->directory = xstrdup(dir);
764 return newroot;