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

Diff of /ccvs/src/base.c

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

revision 1.1.2.2 by dprice, Fri Nov 18 20:02:07 2005 UTC revision 1.1.2.3 by dprice, Tue Nov 22 18:03:44 2005 UTC
# Line 251  base_checkout (RCSNode *rcs, struct file Line 251  base_checkout (RCSNode *rcs, struct file
251                 const char *options, bool writable)                 const char *options, bool writable)
252  {  {
253      int status;      int status;
254        char *basefile;
255    
256      mkdir_if_needed (CVSADM_BASE);      mkdir_if_needed (CVSADM_BASE);
257    
258      if (!current_parsed_root->isremote)      assert (!current_parsed_root->isremote);
259      {  
260          char *basefile = make_base_file_name (finfo->file, rev);      basefile = make_base_file_name (finfo->file, rev);
261          status = RCS_checkout (rcs, basefile, rev, tag, options,      status = RCS_checkout (rcs, basefile, rev, tag, options,
262                                 NULL, NULL, NULL);                             NULL, NULL, NULL);
263          xchmod (basefile, writable);      xchmod (basefile, writable);
264          free (basefile);      free (basefile);
     }  
     else  
         status = 0;  
265    
266      if (server_active)      if (server_active)
267          server_base_checkout (finfo, options, prev, rev);          server_base_checkout (rcs, finfo, prev, rev, tag, options);
268    
269      return status;      return status;
270  }  }
# Line 283  base_copy (struct file_info *finfo, cons Line 281  base_copy (struct file_info *finfo, cons
281      if (server_active)      if (server_active)
282          server_base_copy (finfo, rev, exists);          server_base_copy (finfo, rev, exists);
283  }  }
284    
285    
286    
287    void
288    base_remove (const char *file, const char *rev)
289    {
290        char *basefile = make_base_file_name (file, rev);
291        if (unlink_file (basefile) < 0 && !existence_error (errno))
292            error (0, errno, "Failed to remove `%s'", basefile);
293        free (basefile);
294    }

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

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