Lines Matching defs:newroot

292     cvsroot_t *newroot;
295 newroot = xmalloc(sizeof(cvsroot_t));
297 newroot->original = NULL;
298 newroot->method = null_method;
299 newroot->isremote = 0;
301 newroot->username = NULL;
302 newroot->password = NULL;
303 newroot->hostname = NULL;
304 newroot->port = 0;
305 newroot->directory = NULL;
306 newroot->proxy_hostname = NULL;
307 newroot->proxy_port = 0;
310 return newroot;
370 cvsroot_t *newroot; /* the new root to be returned */
385 newroot = new_cvsroot_t();
388 newroot->original = xstrdup (root_in);
436 newroot->method = local_method;
438 newroot->method = pserver_method;
440 newroot->method = kserver_method;
442 newroot->method = gserver_method;
444 newroot->method = server_method;
446 newroot->method = ext_method;
448 newroot->method = extssh_method;
450 newroot->method = fork_method;
462 newroot->method = ((*cvsroot_copy != '/' && strchr (cvsroot_copy, '/'))
467 newroot->isremote = (newroot->method != local_method);
469 if ((newroot->method != local_method)
470 && (newroot->method != fork_method))
500 newroot->password = xstrdup (++q);
501 /* Don't check for *newroot->password == '\0' since
504 * (newroot->password == NULL means to use the
514 newroot->username = xstrdup (cvsroot_copy);
541 if ((newroot->port = atoi (p)) <= 0)
557 newroot->hostname = xstrdup (cvsroot_copy);
573 newroot->directory = xstrdup(cvsroot_copy);
580 if (newroot->method != local_method)
589 if (newroot->method == fork_method)
598 if (newroot->username && ! newroot->hostname)
608 switch (newroot->method)
612 if (newroot->username || newroot->hostname)
626 if (!isabsolute (newroot->directory))
629 newroot->directory);
639 if (newroot->username || newroot->hostname)
645 newroot->hostname = xstrdup("server"); /* for error messages */
646 if (!isabsolute (newroot->directory))
649 newroot->directory);
693 if (no_password && newroot->password)
700 if (check_hostname && !newroot->hostname)
706 if (no_port && newroot->port)
714 if (*newroot->directory == '\0')
722 return newroot;
726 free_cvsroot_t (newroot);
791 cvsroot_t *newroot = new_cvsroot_t();
793 newroot->original = xstrdup(dir);
794 newroot->method = local_method;
795 newroot->directory = xstrdup(dir);
800 Sanitize_Repository_Name( newroot->directory );
801 return newroot;