summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/server.c
AgeCommit message (Collapse)Author
2007-09-07Do not use global option -V (GNU cvs doesn't understand it), be veryTobias Stoeckmann
verbose per default on server-side instead. OK joris@
2007-09-02OpenCVS server init-support with OpenCVS and GNU cvs clients.Tobias Stoeckmann
OK joris@
2007-09-02Stick at GNU cvs behaviour with Root directive handling: it does not needTobias Stoeckmann
to be sent first, can occure multiple times (although this is ignored) but should be supplied before Directory. OK joris@
2007-08-28more typos in error messages; from Igor Zinovik.Xavier Santolaria
2007-08-23support ArgumentX - unbreaks more gnu cvs client things.Joris Vink
2007-07-03Rework the way opencvs works in relation to files in the Attic/:Joris Vink
Previously, files in the 'Attic/' were linked into our filelist as being 'Attic/filename,v' this caused unneeded stress on certain functions like cvs_file_classify() who had to do pointer voodoo to split out the 'Attic/' part and do other very weird stuff to normalize the pathname of these files. Instead, we handle these files early in the start when we build the fileslist in cvs_repository_getdir(). When encountering the 'Attic/' directory, we recurse in it if required but instead of using the 'Attic/' directory component as our base directory we stick with the directory name where 'Attic/' resides in, resulting in the correct filename while maintaining the correct RCSpath for the file. This made the following things a lot easier: (and in most cases actually fixed the below points) - status with files in Attic/. - checking out HEAD repositories with files in Attic/. - checking out repositories with -rTAG. - updating with -rTAG. and as an added bonus the following now also works: - correctly creating CVS/Tag in both local and remote mode thus allowing update/status/and more to work correctly with the tagged tree. (thanks to the correct handling of -rTAG cases). - resetting tags with opencvs -A properly works too now. This is a major step forward into the usability of OpenCVS when it comes to maintaining multiple tagged trees, the next logical step would be to fix commiting to branches. enjoy you -stable cowards. tested by myself, xsa, niallo and ckuethe thanks guys!
2007-06-29Server-side bits for release command.Xavier Santolaria
2007-06-27have the server be more strict about the requests the clientJoris Vink
sends that need a 'Directory' request first, so we do not end up with very weird and possibly insecure behaviour. more soon! ok niallo@ ray@ xsa@
2007-06-26add support for cvs rlog.Niall O'Higgins
from Mickey. ok joris@ ray@
2007-06-06Don't double xstrdup.Ray Lai
From mickey. ``i made a booboo'' joris, OK niallo and xsa.
2007-05-27Fix off-by-one, from Tobias Stoeckmann.Ray Lai
OK niallo@
2007-05-26It is not the job of cvs_server_send_response() to do error checking.Ray Lai
Also remove unused variable. OK niallo@
2007-05-26Remove redundant xsnprintf calls.Ray Lai
OK niallo@
2007-05-25Call fatal() if we are missing an argument. From Tobias Stoeckmann.Ray Lai
OK niallo@.
2007-05-25Check vasprintf for failure.Ray Lai
OK niallo@.
2007-02-22general includes cleanup sweep. ok joris@ niallo@Otto Moerbeek
2007-02-17cvs_path_cat() removal since we can now easily handle thatXavier Santolaria
functionality w/ xsnprintf(); Initial diff started by thib@. OK thib@ joris@.
2007-01-31snprintf() -> xsnprintf()Xavier Santolaria
2007-01-26Handle CVS/Entries and file timestamp correctly so we doJoris Vink
not mistakenly see a file as Modified while it is not. As a result, we can remove the very hackish cvs_hack_time() and GNU cvs and opencvs should almost get along now. lotsa help and okay The otto@
2007-01-25use more stack allocations for fixed size buffers. ok xsa@ joris@Otto Moerbeek
2007-01-18import improvements:Joris Vink
- add support for remote import in opencvs client and server. - do not free already free'd buffers in import_update() - do not append a '\0' to the loaded file buffer, this was bad behaviour makes import work fine both locally and remotely.
2007-01-17add support for remote checkout in both our client and server,Joris Vink
with this the last real dependency to actually be able to use opencvs in a remote setup has been added. based upon an initial diff from xsa@ 'kay niallo@
2007-01-13- remote update now works again, with new rcs apiJoris Vink
- we no longer hold the entire file in memory when sending or receiving it
2007-01-03add support for 'remove' in a remote setup.Joris Vink
testing appriciated, as always.
2006-12-19add client-side support for Set-static-directory.Xavier Santolaria
2006-12-19add client-side support for Clear-static-directory, Clear-sticky andXavier Santolaria
Set-sticky requests. Set-sticky needs more work though.
2006-12-15dummy support for update-patches request.Xavier Santolaria
2006-12-15server-side Static-directory bits.Xavier Santolaria
2006-12-15server-side Sticky bits.Xavier Santolaria
2006-12-04snprintf() -> cvs_path_cat()Xavier Santolaria
2006-11-27hook up annotate server bits.Xavier Santolaria
2006-11-14Add support for the "Set" request.Xavier Santolaria
2006-11-14Handle global -l, -Q, and -r on the server side too.Xavier Santolaria
2006-11-14dummy support for Argumentx request.Xavier Santolaria
2006-11-14Bring back version command. Still needs tweaks to make theXavier Santolaria
gnu cvs client<->opencvs server setup work. Rest works fine.
2006-11-13Add server-side bits for admin command.Xavier Santolaria
2006-11-09cvs init remote bits.Xavier Santolaria
2006-11-09fix pasto..Xavier Santolaria
2006-11-09remote tag command support joins the party!Xavier Santolaria
2006-10-31a step ahead in opencvs add|remove remote support.Xavier Santolaria
2006-07-09more straightforward trace (-t) output, too much is just too noisy.Joris Vink
2006-07-07first part of opencvs remote, fairly useable on existing treesJoris Vink
although i advise against using it on real development trees for now. only a few commands work right so far: - commit - diff - status - log - update (partially working) if you feel like testing remote and run into bugs feel free to contact me, and please include a full trace (-t).
2006-05-27commit the new opencvs code, i have been hacking onJoris Vink
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.
2006-01-02#include's cleanup; ok joris@ niallo@.Xavier Santolaria
2005-12-24add an argument to cvs_chdir() which enables or not the removalXavier Santolaria
of the directory we just chdir'd to. Useful when the function fails especially for the server mode and its temporary directory. This way it's not left behind on exit. ok joris@.
2005-12-20use fatal(); OK joris@ niallo@.Xavier Santolaria
2005-10-14remove temporary cvs directory in error cases too. ok joris@Moritz Jodeit
2005-08-14missing casts; ok jorisXavier Santolaria
2005-08-10fgets() expects the 2nd arg to be an int. OK jfb@ joris@.Xavier Santolaria
2005-08-08use cvs_tmpdir; OK jfb@ joris@.Xavier Santolaria