summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/entries.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* do not leak a file pointer in case of errorjfb2005-02-221-2/+3
| | | | from Joris Vink
* - accept a minus sign in front of the file's revision number tojfb2005-02-011-3/+18
| | | | | | indicate that the file has been removed - set the timestamp as invalid if we get the "dummy timestamp" string in the 4th field
* stupid me, no need to reinit the queuejfb2005-01-141-4/+1
| | | | pointed by henning@
* when removing the last entry from the tail queue, reinitialize thejfb2005-01-141-1/+11
| | | | | | | 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@
* When loading directory entries, create file structures for files whichjfb2004-12-141-7/+5
| | | | have been lost but have a valid entry.
* less whitespace, more pretty. ok jfbtedu2004-12-071-21/+9
|
* tighten vertical spacing for else; jfb okderaadt2004-12-061-3/+2
|
* We don't need to keep a copy of each Entries line, it isn't usedkrapht2004-11-091-9/+2
| | | | anywhere and it consumes memory uselessly.
* use the correct Entries path to store in cef_path;joris2004-08-311-2/+2
| | | | ok jfb
* Instead of keeping an open pointer to the Entries file when opening withjfb2004-08-271-11/+23
| | | | | | | 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.
* * add an entry for directories when we create themjfb2004-08-131-11/+17
| | | | * when writing a directory entry, skip the revision and timestamp
* When the mtime is (time_t)-1, print the dummy timestamp string insteadjfb2004-08-131-2/+6
| | | | of a bogus date
* Ditch the 'ce_timestamp' field in favor of 'ce_mtime', which keepsjfb2004-08-131-4/+9
| | | | the timestamp in time_t instead of a string
* When creating a new Entries file, make sure we put one 'D' instead ofjfb2004-08-121-10/+13
| | | | leaving the file empty
* Fix usage of cvs_splitpath()jfb2004-08-061-3/+3
|
* Simplify entry parsingjfb2004-08-041-34/+34
|
* Implement cvs_ent_remove()jfb2004-08-031-1/+26
|
* * remove header cruft that belongs in file.hjfb2004-07-301-23/+76
| | | | | * be more intelligent with the file open mode. It seems rewind() doesn't work too well with a file opened in append mode
* * when opening an Entries file for writing, open the file in append modejfb2004-07-271-3/+9
| | | | | | * 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
* Fix pointer passed to fclose() in cvs_ent_close()jfb2004-07-261-2/+2
|
* * cleanup the file API with regards to flag handling andjfb2004-07-251-10/+76
| | | | | | general structure * implement cvs_ent_close() correctly, fix some memory leaks, and add cvs_ent_getent() to get a single entry easily
* Unbreak the Entries loading code and move to a tail queue so we can removejfb2004-07-141-44/+32
| | | | entries as well when it will be needed
* make adding entries to the Entries file workjfb2004-07-141-9/+70
|
* prepare the entries interface so we can add entriesjfb2004-07-141-2/+2
|
* * initial import from the cvs-tools modulejfb2004-07-131-0/+263