#
4cb553bb |
| 26-Mar-2009 |
joris <joris@openbsd.org> |
fix the way Attic is handled in our recursion code, so we do not skip files or run over them twice.
also fixes -l and -r for checkout/update when a file in Attic exists with that tag that in HEAD is
fix the way Attic is handled in our recursion code, so we do not skip files or run over them twice.
also fixes -l and -r for checkout/update when a file in Attic exists with that tag that in HEAD is a directory in the normal repository like gnu/usr.bin/gcc/INSTALL.
as a bonus, we do not run fstat() twice per file or dir anymore...
spotted by deraadt@
show more ...
|
#
f106b389 |
| 25-Mar-2009 |
joris <joris@openbsd.org> |
switch our file and directory lists to RB trees (see tree(3)), so we can benefit from faster lookup times while recursing.
|
#
83389238 |
| 21-Feb-2009 |
joris <joris@openbsd.org> |
use file_flags for 2 more reasons: - mark a file as being inside the Attic/ - mark a file as existing in the working copy (both in local and remote mode)
this way we no longer will need to check i
use file_flags for 2 more reasons: - mark a file as being inside the Attic/ - mark a file as existing in the working copy (both in local and remote mode)
this way we no longer will need to check if cf->fd == -1 and think about wether or not we are in local or remote mode.
show more ...
|
#
98902223 |
| 21-Feb-2009 |
joris <joris@openbsd.org> |
alter cvs_file_get() so it takes flags instead of one set value for user_supplied. allow us to carry any important file flags over to cvs_file's later on.
makes it easier for what i have coming.
|
#
a4a7c2fa |
| 13-Jun-2008 |
joris <joris@openbsd.org> |
pass the complete path to cvs_file_get_cf() instead of reconstructing it again in that function.
|
#
870ea05d |
| 09-Mar-2008 |
joris <joris@openbsd.org> |
pass user_supplied to struct cvs_file so it can be used in the callbacks to verify if this file was specified on the command line.
|
#
949f9346 |
| 09-Mar-2008 |
joris <joris@openbsd.org> |
rename check_dir_tag to user_supplied to reflect what the flag actually means and is used for.
|
#
2cc1dd04 |
| 23-Sep-2007 |
joris <joris@openbsd.org> |
pass FILE_HAS_FLAG towards the update code so it can identify if a given tag is present in the RCSfile or not.
|
#
51ef6581 |
| 22-Sep-2007 |
joris <joris@openbsd.org> |
better branching/sticky tag support, no branch commits yet though.
|
#
ca2dc546 |
| 01-Jun-2007 |
niallo <niallo@openbsd.org> |
add support for local and remote branch checkout. for example, cvs co -rOPENBSD_3_0 works now. along the way, simplify and rationalise code and fix a few nits.
ok joris@ xsa@ ray@
|
#
1f8531bd |
| 22-Feb-2007 |
otto <otto@openbsd.org> |
general includes cleanup sweep. ok joris@ niallo@
|
#
2b5bb192 |
| 13-Feb-2007 |
xsa <xsa@openbsd.org> |
zap unused CVS_ISDIR() and CVS_ISFILE() macros. OK joris@.
|
#
34911d69 |
| 09-Feb-2007 |
joris <joris@openbsd.org> |
remove the cvs_file_classify() `loud' argument, it was used in the old school days and serves no purpose what so ever now.
otto@ mentioned this to me a while ago
|
#
0b10fb85 |
| 10-Jan-2007 |
xsa <xsa@openbsd.org> |
add a cvs_file_copy routine and use it for the edit command to copy the file in the current working directory to CVS/Base/ ok ray@ joris@.
|
#
de08069b |
| 06-Jan-2007 |
xsa <xsa@openbsd.org> |
add cvs_base_handle() routine to handle the CVS/Baserev* files. first bits for the edit command for now. definitly still more work to do for optimization...
|
#
93c88394 |
| 05-Jan-2007 |
xsa <xsa@openbsd.org> |
- introduce file comparison routine, cvs_file_cmp(). - compare the <file> in working dir and the one in CVS/Base/<file> for the unedit command. hints otto@, input and ok ray@ niallo@.
|
#
3daf6609 |
| 30-May-2006 |
joris <joris@openbsd.org> |
fill in the correct revision number we will want in file_rcsrev for each cvs_file struct, this will help us with sticky tags, commiting to branches and importing into existing repositories.
|
#
6ac6a1c7 |
| 28-May-2006 |
joris <joris@openbsd.org> |
several fixes to the file api: - default to CVS_FILE when something is totally unknown - cvs_get_repository_path() now returns the full repository path for the given argument. - cvs_get_repository_
several fixes to the file api: - default to CVS_FILE when something is totally unknown - cvs_get_repository_path() now returns the full repository path for the given argument. - cvs_get_repository_name() returns the contents of CVS/Repository to the caller. - allow command callbacks to specify if our recursion code needs to skip the directory or not. - when checking for a admin directory, make sure it is in fact a directory. if it is not we dont want to recurse inside.
show more ...
|
#
91e2b091 |
| 28-May-2006 |
joris <joris@openbsd.org> |
allow commands to shut up the output from cvs_file_classify if the commands want to output certain stuff themselfs
|
#
3ad3fb45 |
| 27-May-2006 |
joris <joris@openbsd.org> |
commit the new opencvs code, i have been hacking on this for the past 2 weeks now and it should go in at the start of the hackathon so others can help out.
this code is a lot safer, smarter, faster
commit the new opencvs code, i have been hacking on this for the past 2 weeks now and it should go in at the start of the hackathon so others can help out.
this code is a lot safer, smarter, faster and best of all it is actually doing what it is suppose to do!
basic checkout, update, status, diff and commit are working in local mode only. there is no support for any remote setups now.
show more ...
|
#
53b810a1 |
| 02-Jan-2006 |
xsa <xsa@openbsd.org> |
more includes cleanup;
|
#
50a942dc |
| 04-Dec-2005 |
joris <joris@openbsd.org> |
more code cleanup, remove useless flags and parts of code that never got used in the first place;
|
#
17c7d4fc |
| 03-Dec-2005 |
joris <joris@openbsd.org> |
remove unused and useless functions, they just get in the way;
|
#
5191afff |
| 03-Dec-2005 |
joris <joris@openbsd.org> |
add very basic support for the following stuff:
- checkout in local mode (example: /cvs) - update in local and server mode (example: /cvs and user@host:/cvs) - import in local and server mode (examp
add very basic support for the following stuff:
- checkout in local mode (example: /cvs) - update in local and server mode (example: /cvs and user@host:/cvs) - import in local and server mode (example: /cvs and user@host:/cvs)
what remains to be done:
- not all options are supported yet, and update cannot pick up newly added files yet. these things are pending and will be commited real soon.
- checkout only works locally right now.
- fix rcs parsing code so that we don't fucking hog 100% cpu on really BIG BIG BIG ass trees.
mainly tested by pedro@ and myself, thanks a lot pedro!
"go for it" niallo@
show more ...
|
#
1cdb0eb3 |
| 12-Nov-2005 |
niallo <niallo@openbsd.org> |
- remove strtab stuff. serves no useful purpose.
diff is from joris@, committing on his behalf because his net connection is very dodgy right now.
|