On Fri, Jan 21, 2022 at 08:55:57PM +0100, Stefan Sperling wrote:
> On Fri, Jan 21, 2022 at 08:44:14PM +0100, Marc Espie wrote:
> > On Fri, Jan 21, 2022 at 07:47:44PM +0100, Stefan Sperling wrote:
> > > On Fri, Jan 21, 2022 at 07:24:34PM +0100, Marc Espie wrote:
> > > > On Fri, Jan 21, 2022 at 07:06:22PM +0100, Stefan Sperling wrote:
> > > > > I never understood why new ports have to submitted as a tarball.
> > > > > Why not accept new ports as a diff which only creates new files?
> > > > > It is trivial to create such a diff.
> > > > 
> > > > Give me the magical recipie that does NOT create directories in the 
> > > > actual
> > > > CVS repository/is usable without write access to the OpenBSD CVS repo or
> > > > a copy !
> > > > 
> > > > They DON'T create new files, they create NEW DIRECTORIES.
> > > > 
> > > > Unless I'm missing something, CVS makes it NEXT TO IMPOSSIBLE TO DO
> > > > without a local repository!
> > > 
> > > cvsdo can do it by faking new directories entries in CVS/Entries files.
> > > This does not require adding directories to the repository (see below).
> > > I am not suggesting this is a great solution, but it can be done.
> > 
> > Is this documented anywhere for new people?
> 
> I doubt it.
> But before recommending this approach, a few people should try to work
> through entire submissions of non-trivial ports with it. There might be
> some gotchas which the trivial cases I've used this for cannot uncover.
> I last used cvsdo years ago while submitting diffs for both src and ports,
> and only in the rare cases where I had to add new files.
> Nothing like tor-browser or chromium :P
> 
> Nowadays, I would use devel/got to create such a diff against ports.git
> cloned from github. But that is not CVS and it is probably too early to
> generally recommend got instead of git to work on ports. Though I would
> be happy to receive bug reports against got from interested ports devs.
> 

I use a hybrid system of sorts. My ports tree is from CVS. My mystuff
directory in my ports tree is got controlled. When I work on a port, the
cvs directory is copied to mystuff and added to got. That way, I can
track changes the way I am comfortable, adding and removing files from
both got and CVS, etc.

I can then generate diffs from either got or CVS, but this way it's easy
for me to revert something in got if I need to. When finished, I can
simply commit from this directory to CVS and update my ports tree, then
remove from got.

May sound weird, but it works for me and helps me keep things straight
on some of the more complicated junk I work on, simultaneously keeping
my github wip repo up-to-date, since mystuff is a bare clone from my
github account.

-- 

Tracey Emery

Reply via email to