/[cvs]/ccvs/src/import.c
ViewVC logotype

Diff of /ccvs/src/import.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.172 by dprice, Fri Jun 10 20:32:09 2005 UTC revision 1.173 by dprice, Tue Aug 30 01:55:19 2005 UTC
# Line 271  import (int argc, char **argv) Line 271  import (int argc, char **argv)
271                          repository,                          repository,
272                     NULL);                     NULL);
273      }      }
     do_verify (&message, repository);  
274      msglen = message == NULL ? 0 : strlen (message);      msglen = message == NULL ? 0 : strlen (message);
275      if (msglen == 0 || message[msglen - 1] != '\n')      if (msglen == 0 || message[msglen - 1] != '\n')
276      {      {
# Line 334  import (int argc, char **argv) Line 333  import (int argc, char **argv)
333          error (1, 0, "attempt to import the repository");          error (1, 0, "attempt to import the repository");
334      }      }
335    
336        ulist = getlist ();
337        p = getnode ();
338        p->type = UPDATE;
339        p->delproc = update_delproc;
340        p->key = xstrdup ("- Imported sources");
341        li = xmalloc (sizeof (struct logfile_info));
342        li->type = T_TITLE;
343        li->tag = xstrdup (vbranch);
344        li->rev_old = li->rev_new = NULL;
345        p->data = li;
346        (void) addnode (ulist, p);
347        do_verify (&message, repository, ulist);
348    
349      /*      /*
350       * Make all newly created directories writable.  Should really use a more       * Make all newly created directories writable.  Should really use a more
351       * sophisticated security mechanism here.       * sophisticated security mechanism here.
# Line 420  import (int argc, char **argv) Line 432  import (int argc, char **argv)
432      /*      /*
433       * Write out the logfile and clean up.       * Write out the logfile and clean up.
434       */       */
     ulist = getlist ();  
     p = getnode ();  
     p->type = UPDATE;  
     p->delproc = update_delproc;  
     p->key = xstrdup ("- Imported sources");  
     li = xmalloc (sizeof (struct logfile_info));  
     li->type = T_TITLE;  
     li->tag = xstrdup (vbranch);  
     li->rev_old = li->rev_new = NULL;  
     p->data = li;  
     (void) addnode (ulist, p);  
435      Update_Logfile (repository, message, logfp, ulist);      Update_Logfile (repository, message, logfp, ulist);
436      dellist (&ulist);      dellist (&ulist);
437      if (fclose (logfp) < 0)      if (fclose (logfp) < 0)

Legend:
Removed from v.1.172  
changed lines
  Added in v.1.173

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26