suspend/resume on macbooks

2016-10-18 Thread Joris Vink
Hi, Sending this out so others with Macbooks can test this. This diff may fix suspend/resume problems seen on certain Macbooks where your display goes black but nothing else happens. Note that this is babysteps as after resume your system is missing its battery, the keyboard backlight needs a

opencvs - show branch revision in status

2016-10-17 Thread Joris Vink
Hi, Let's bring status a bit more inline with its GNU cvs counter part. This diff adds the branch revision for the sticky tag if set. .joris Index: status.c === RCS file: /cvs/src/usr.bin/cvs/status.c,v retrieving revision 1.96

opencvs - fix update -r and -A

2016-10-14 Thread Joris Vink
Hi, In certain cases update -r and update -A would not properly set or reset the sticky tag for file(s). This patch fixes that problem. .joris Index: update.c === RCS file: /cvs/src/usr.bin/cvs/update.c,v retrieving revision 1.172

opencvs - check len in rcsnum_setsize()

2016-06-24 Thread Joris Vink
Hi, Since RCSNUM's rn_id array is limited to RCSNUM_MAXLEN it is very sensible to make sure rcsnum_setsize() protects against this. Index: rcsnum.c === RCS file: /cvs/src/usr.bin/cvs/rcsnum.c,v retrieving revision 1.57 diff -u -p

opencvs - fix regression tests

2016-06-23 Thread Joris Vink
Hi, Diff fixes a two broken regression tests for opencvs. .joris Index: Makefile === RCS file: /cvs/src/regress/usr.bin/cvs/Makefile,v retrieving revision 1.28 diff -u -p -r1.28 Makefile --- Makefile13 Jul 2010 21:31:17 -

opencvs - revision log diff

2016-06-23 Thread Joris Vink
Hi, This is a revised diff from the previous one I sent regarding updating the log command to be a bit more similar to GNU cvs. This diff now also fixes a bunch of segfaults with rare corner cases. There are still several problems with log however, including not properly iterating over Attic

Re: opencvs - fix revision lookups for branches

2016-06-22 Thread Joris Vink
On Wed, Jun 22, 2016 at 09:07:03AM -0600, Todd C. Miller wrote: > On Wed, 22 Jun 2016 12:21:56 +0200, Joris Vink wrote: > > Index: rcs.c > > === > > RCS file: /cvs/src/usr.bin/cvs/rcs.c,v > > retrieving re

opencvs - log command fixes

2016-06-22 Thread Joris Vink
Hi, Brings log a bit more inline with its GNU counterpart by attempting to parse the date range early on, killing extra output from date.y and having a proper fatal message. Any caller of date_parse() already displays its own error messages anyway if it fails. Additionally lets not return -1

opencvs - use correct size when creating h_table

2016-06-22 Thread Joris Vink
Hi, Don't allocate the length of a pointer but rather the entire size of the struct hash_head data structure when creating the h_table array. .joris Index: hash.c === RCS file: /cvs/src/usr.bin/cvs/hash.c,v retrieving revision 1.2

opencvs - fix signed vs unsigned type confusion across opencvs.

2016-06-22 Thread Joris Vink
Hi, The diff below fixes several signed vs unsigned type confusion warnings and shuffles some assignments around. .joris Index: buf.c === RCS file: /cvs/src/usr.bin/cvs/buf.c,v retrieving revision 1.83 diff -u -p -r1.83 buf.c ---

opencvs - correct type of p in annotate

2016-06-22 Thread Joris Vink
Hi, Use the correct type for p. .joris Index: annotate.c === RCS file: /cvs/src/usr.bin/cvs/annotate.c,v retrieving revision 1.65 diff -u -p -r1.65 annotate.c --- annotate.c 5 Nov 2015 09:48:21 - 1.65 +++ annotate.c 22

opencvs - fix revision lookups for branches

2016-06-22 Thread Joris Vink
Hi, This diff below fixes a serious issue in opencvs when checking out revisions from a branch. Properly perform a revision lookup so update -r actually works again, as a bonus throw a more correct error when the revision could not be found. .joris Index: rcs.c

opencvs: add commitid to status

2015-02-15 Thread Joris Vink
Hi. Diff below adds support to opencvs to display commitid for status commands. .joris Index: status.c === RCS file: /cvs/src/usr.bin/cvs/status.c,v retrieving revision 1.94 diff -u -p -r1.94 status.c --- status.c16 Jan 2015

Re: opencvs: show correct time in status

2015-02-15 Thread Joris Vink
Hi. Updated diff below. .joris Index: entries.c === RCS file: /cvs/src/usr.bin/cvs/entries.c,v retrieving revision 1.103 diff -u -p -r1.103 entries.c --- entries.c 16 Jan 2015 06:40:07 - 1.103 +++ entries.c 15 Feb 2015

opencvs: properly fix revision lookups

2015-02-12 Thread Joris Vink
Properly perform a revision lookup so update -r actually works again, as a bonus throw a more correct error when the revision could not be found. (not on list, cc me) .joris Index: rcs.c === RCS file: /cvs/src/usr.bin/cvs/rcs.c,v

opencvs: show correct time in status

2015-02-12 Thread Joris Vink
Opencvs showed the incorrect time for status. Changed it to do what GNU does which is taking the actual time string from the entries line. (not on the list, cc me) .joris Index: cvs.h === RCS file: /cvs/src/usr.bin/cvs/cvs.h,v

Re: opencvs: show correct time in status

2015-02-12 Thread Joris Vink
On Thu, Feb 12, 2015 at 11:30:26PM +0100, Stefan Sperling wrote: This looks right for non-conflicted files. But for conflicted files, the version of GNU cvs we have in base, and opencvs without this patch, both show: Working revision:1.18Result of merge With this patch