Commit Graph

38 Commits

Author SHA1 Message Date
Ulf Lilleengen
d1ec640bcf - Do not free the pattern lists immediately after use, as they might be needed
again in case the connection is interrupted and csup have to reconnect. The
  lists will be freed after the collection has been completely processed.

PR:		bin/131477
Tested by:	dchagin
2009-02-15 13:22:21 +00:00
Ulf Lilleengen
71f35f385d - Fix an issue where file attributes were not installed correctly during a Touch
and SetAttrs operation.
- SetAttrs and Touch were incorrectly switched.
2009-02-09 20:13:55 +00:00
Ulf Lilleengen
7251cf2c6c - Update manpage now that cvs mode is supported. 2009-01-07 18:37:07 +00:00
Ulf Lilleengen
efb1385dec - Sort children branches by revision number rather than by date since a few RCS
files have the wrong date.
2009-01-04 18:18:59 +00:00
Ulf Lilleengen
5aaa6a0859 - Update copyright. 2009-01-04 17:31:01 +00:00
Ulf Lilleengen
231a7b676c - Try to match style(9).
- Remove old comments.
2009-01-04 17:26:59 +00:00
Ulf Lilleengen
46c790391c - Use a LIST to hold branches instead of a STAILQ.
- Sort branches when inserting them.
2009-01-03 18:51:49 +00:00
Ulf Lilleengen
8b5125bdfe - Write out branches with the highest revision number first if they have the
same date.
2009-01-03 15:17:20 +00:00
Ulf Lilleengen
0b73a70cd9 - A bit missing from the previous commit. The '@'s from the string token must be
stripped before encoding the expansion mode.
2009-01-03 12:09:18 +00:00
Ulf Lilleengen
c81ea6003c - Add an optimization when parsing rcsfiles when the intention is to only send
details to the cvsup server. The deltatext does not need parsing, and some
  parts of the rcsfile data structure doesn't need to be set up.
- Fix a bug where the RCS expansion mode is not written out.
2009-01-02 12:40:58 +00:00
Ulf Lilleengen
e0f42fb982 - Disable rsync support for now, as it is not fully working. 2009-01-02 12:37:31 +00:00
Ulf Lilleengen
0da6b614af - Fattrs are not used for rsync, so remove unused code. 2009-01-02 12:36:59 +00:00
Ulf Lilleengen
d8c0b9ac9f - Check for NULL in case fattr_frompath fails. 2009-01-02 12:35:01 +00:00
Ulf Lilleengen
abb23cb1af - Fix a wrong flag check. 2008-12-21 14:04:10 +00:00
Ulf Lilleengen
a25883eaea - Add missing printout information when appending file.
Submitted by:	naddy
2008-12-10 18:13:30 +00:00
Ulf Lilleengen
4390381ebd - Check return value of the encoded keyword before using it.
Pointed out by:	Christian Weisgerber <naddy -at- mips.inka.de>
2008-12-09 21:10:09 +00:00
Ulf Lilleengen
9178dc306f A few bugfixes:
- Instead of including protocol info in diffs, strip them before adding
  deltatext and take this into account when applying the diff later.
- Don't use strlen when the string in the RCS file may contain garbage. This got
  caught in the checksumming before, but was not fixed until now. Instead of
  using strlen, pass the token length when adding log and text entries to a
  delta. Add an extra length parameter to duptext() to record the token length.
- When adding new branches to a file, add them in at the tail instead of the
  head of the list to get correct ordering when writing out.
- Input stream when diffing was opened twice.
- Don't expand keywords in diffs between deltas.
2008-12-03 22:47:33 +00:00
Ulf Lilleengen
bc1d339146 - Print out information about what file that is edited before it is edited
instead of after.
2008-12-02 20:50:37 +00:00
Ulf Lilleengen
627156f119 - Fix a bug where deltas was not sorted on RCS dates _and_ revision number. 2008-12-02 20:48:45 +00:00
Ulf Lilleengen
ab0135bc74 - Fix a bug in csup where SKIP is not obeyed when sending collection
information.
2008-11-26 19:27:51 +00:00
Ulf Lilleengen
41a9dd24e4 - Make sure comparisons are done on file types as well.
- Handle the case where a repository may have been copied, and the symlinks have
  not been preserved. CVSup removes the files and creates the symlinks, so
  enable this behaviour in csup as well.
- While there, fix comments and style issues.
2008-11-23 16:44:49 +00:00
Ulf Lilleengen
c978f37d88 - Add support for reading RCS info from status file to avoid having to detail a
file if it is up to date.
2008-11-23 14:53:21 +00:00
Ulf Lilleengen
49e63a7276 - Refactor some parts of the code and increase code reuse.
- Fix a lot of style issues remaining and old debugging output.
- Update comments where needed.
2008-11-20 19:51:06 +00:00
Ulf Lilleengen
bd04e3119f - Add support for 'X' and 'x' commands in CVSup protocol. These commands are not
often used, but were quite simple to implement anyway.
2008-11-20 13:39:14 +00:00
Ulf Lilleengen
271c9f1bd4 - Fix build with GNU make.
- Fix compiler warnings and symbol overlaps.
- Don't build code that is not used yet.
- Fix types and format strings.
2008-11-20 12:52:07 +00:00
Ulf Lilleengen
bd337e58c3 - Fix issues that prevented rsync support from working. 2008-11-20 12:23:44 +00:00
Ulf Lilleengen
d0d1701140 A few general bugfixes:
- Use internal xmalloc instead of malloc.
- Include missing header after warnings.
- Fix unneeded printouts.
- Fix a bug when checking the CO_NORSYNC flag.
2008-11-19 14:57:00 +00:00
Ulf Lilleengen
a02596e2f7 - Fixup the rcs revision comparing to be correct this time. 2008-11-19 14:53:20 +00:00
Ulf Lilleengen
2323f92e44 - Fix idiotic rcsnum_cmp and compare the revision numbers without allocating any
memory.
2008-11-12 14:29:24 +00:00
Ulf Lilleengen
4136ca9478 - Implement rsync support in csup, which is chosen as a protocol for regular
files if the client supports it. The support is implemented with an API to
  operate on files, calculating the rolling checksum and md5 checksum for the
  blocks etc.
- Remove unneeded stream_filter_stop and stream_flush before stream_close.
2008-10-25 10:54:28 +00:00
Ulf Lilleengen
763db4b138 - Implement support for retrieving a size_t type from the protocol stream. 2008-10-25 10:52:22 +00:00
Ulf Lilleengen
92854d9d50 - Add size_t format specifier to proto_printf. 2008-10-25 10:23:24 +00:00
Ulf Lilleengen
3d4e599494 - Import csup work from p4. 2008-10-19 09:08:59 +00:00
John Birrell
425f8c30f8 Fix a compiler warning. 2007-11-18 00:25:18 +00:00
Maxime Henrion
4dccd84c5f Fix a typo that caused the #undef directive to not actually undefine
the correct symbol, thus causing a warning with GCC 4.2.0.  Committed
into the vendor branch since this is already in the csup repository.

Reported by:	kan (ages ago)
2007-05-19 13:55:01 +00:00
Maxime Henrion
7d6ea92e92 Import the latest snapshot of csup (20060313). 2006-03-14 03:51:13 +00:00
Maxime Henrion
91be0d8ce3 Import today's csup sources to get the warning fix for queue.h. We
probably want to do something similar in sys/queue.h; it's bad to have
STAILQ_LAST() generate GCC warnings.
2006-03-03 18:45:12 +00:00
Maxime Henrion
bb215397ee Initial import of csup. 2006-03-03 04:11:29 +00:00