summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/entries.c
AgeCommit message (Collapse)Author
2005-04-22finish support for the '-' token in the Entry file, this allowsJoris Vink
us to mark files as removed, and lets the remove command work completely. tested and ok xsa@, jfb@
2005-04-15snprintf() return values checks; joris okXavier Santolaria
2005-02-22do not leak a file pointer in case of errorJean-Francois Brousseau
from Joris Vink
2005-02-01- accept a minus sign in front of the file's revision number toJean-Francois Brousseau
indicate that the file has been removed - set the timestamp as invalid if we get the "dummy timestamp" string in the 4th field
2005-01-14stupid me, no need to reinit the queueJean-Francois Brousseau
pointed by henning@
2005-01-14when removing the last entry from the tail queue, reinitialize theJean-Francois Brousseau
queue for sanity, and make sure that the current pointer is set to the next item if it points to the item being removed. fixes a crash reported by brad@, tested by joris and brad@
2004-12-14When loading directory entries, create file structures for files whichJean-Francois Brousseau
have been lost but have a valid entry.
2004-12-07less whitespace, more pretty. ok jfbTed Unangst
2004-12-06tighten vertical spacing for else; jfb okTheo de Raadt
2004-11-09We don't need to keep a copy of each Entries line, it isn't usedkrapht
anywhere and it consumes memory uselessly.
2004-08-31use the correct Entries path to store in cef_path;Joris Vink
ok jfb
2004-08-27Instead of keeping an open pointer to the Entries file when opening withJean-Francois Brousseau
write access, close it and reopen it only on demand, since large trees can contain enough Entries files to generate a 'Too many open files'. Problem spotted by Todd Fries.
2004-08-13* add an entry for directories when we create themJean-Francois Brousseau
* when writing a directory entry, skip the revision and timestamp
2004-08-13When the mtime is (time_t)-1, print the dummy timestamp string insteadJean-Francois Brousseau
of a bogus date
2004-08-13Ditch the 'ce_timestamp' field in favor of 'ce_mtime', which keepsJean-Francois Brousseau
the timestamp in time_t instead of a string
2004-08-12When creating a new Entries file, make sure we put one 'D' instead ofJean-Francois Brousseau
leaving the file empty
2004-08-06Fix usage of cvs_splitpath()Jean-Francois Brousseau
2004-08-04Simplify entry parsingJean-Francois Brousseau
2004-08-03Implement cvs_ent_remove()Jean-Francois Brousseau
2004-07-30* remove header cruft that belongs in file.hJean-Francois Brousseau
* be more intelligent with the file open mode. It seems rewind() doesn't work too well with a file opened in append mode
2004-07-27* when opening an Entries file for writing, open the file in append modeJean-Francois Brousseau
* when parsing the entries, break if we encounter the last line 'D' * when adding the line to the file, generate it from the fields instead of taking the line
2004-07-26Fix pointer passed to fclose() in cvs_ent_close()Jean-Francois Brousseau
2004-07-25* cleanup the file API with regards to flag handling andJean-Francois Brousseau
general structure * implement cvs_ent_close() correctly, fix some memory leaks, and add cvs_ent_getent() to get a single entry easily
2004-07-14Unbreak the Entries loading code and move to a tail queue so we can removeJean-Francois Brousseau
entries as well when it will be needed
2004-07-14make adding entries to the Entries file workJean-Francois Brousseau
2004-07-14prepare the entries interface so we can add entriesJean-Francois Brousseau
2004-07-13* initial import from the cvs-tools moduleJean-Francois Brousseau