questions on development(7)

Ian FREISLICH ianf at clue.co.za
Fri Nov 9 06:20:21 PST 2007


"Aryeh M. Friedman" wrote:
> First of all I am posting to both -current and -hackers because
> -hackers seems to be very low volume.
> 
> I just set up a master server development server using the procedure
> in development(7) which was fairly clear but left a few questions
> unanswered (and one odd behavior).  I have only the master server (no
> clients).   Just for ref my dir tree looks like this:
> 
> /home/ncvs  ---> /FreeBSD/CVSROOT
> /FreeBSD/7.x   (src)
> /FreeBSD/current (src ports doc)
> /usr/src ---> /FreeBSD/7.x
> /usr/src2 ---> /FreeBSD/current
> /usr/ports ---> /FreeBSD/current/ports
> /usr/obj is on it's own partition
> 
> My questions:
> 
> 1. If I am modifing code and such should I have a local branch?
> 2. If yes to #1 how do I setup keeping everything except my modified
> code in sync (and if possible to retro activally apply patchs from the
> local branch unto the main source tree [/usr/src2])

You won't be able to commit to the BSD repo from your server.  I
think you should treat your repo as read only and use cvsup to keep
it up to date.  At least that's what I do.

> 3. The documentation said very little about how to generate patchs
> between my local code and the main branch
>     a. Ideally I want to set it up where when I am done with a
> modification it automatically creates a patch (I have never used CVS
> for anything except through csup and cvsup so I am totally lost here)

'cvs diff'  will generate a patch for the specified files or
directories.  Some like context diffs, I like unified with minimal
context '-ud' option to diff.  Use whichever you find easier to
read.  Submit patches in whatever format the developers prefer.
Unified seems the most common format around here.

Ian

--
Ian Freislich

_______________________________________________
freebsd-hackers at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"


More information about the freebsd-current mailing list