zsh-workers
 help / color / mirror / code / Atom feed
From: mason@primenet.com.au (Geoff Wing)
To: zsh-workers@sunsite.auc.dk
Subject: Re: Patching (was: Re: PATCH: AIX dep.&doc fix; development guidelines)
Date: 17 Apr 2000 11:14:48 GMT	[thread overview]
Message-ID: <slrn8flsh7.5ip.mason@coral.primenet.com.au> (raw)
In-Reply-To: <200004100726.JAA26191@beta.informatik.hu-berlin.de>

Sven Wischnowsky <wischnow@informatik.hu-berlin.de> typed:
:I've had an idea at the weekend, but don't know if this is possible
:with a (remote) CVS server, so I'll have to ask some questions...
:
:Using `loginfo', it should be possible to make the CVS server give out 
:numbers for the patches, err... for the commits. If the program
:executed from loginfo prints something, will that be displayed on the
:terminal where one does the commit?

With :pserver: it will.  I presume it also will with ssh.

:With a local repository this seems 
:to work. If it works with remote CVS, too, we probably could make the
:loginfo-program get the number and print, at the end of the
:commit-output (or somewhere in-between), something like `Commit number xxx'.

Yes, though if you want a sequence then you'll need to have it do its
own locking on whatever file (presumably kept in CVSROOT/) contains
the number.

:Next question: could loginfo (or some of the other automatically
:executed things) append that number to the log-message given to the
:commit? So that we also have the number in the messages stored in the
:repository.

Not within the normal CVS pathway.  The only CVSROOT/* file which can
modify the checkin is cvswrappers (unless you have one of the others
spawn some program which does it own hacking - very dangerous) and
cvswrappers modifies the _file_ not the log message.  And hope nobody
makes drastic changes with ``cvs admin -m....'' independent of the
ChangeLog; probably not a problem (though IIRC in one or more versions
of cvs you could damage your file/s using that - or maybe that was
``cvs admin -o'' and we hope that nobody is going to use that).

:And finally, if all the above works, the CVS server has the
:log-message from the user, the patch number and it knows the changed
:files, so: could it change ChangeLog automatically?

I can't think of any elegant way to do so (on the remote CVS server)
since you have no properly safe work space (except maybe /{,usr/,var/}tmp).
You could have ChangeLog centrally managed off-site, e.g. have loginfo
mail in some special format to, say, orbital/shell1 and reconstructed
there into something which can be automagically prepended to ChangeLog.
If someone gets really, really sick of updating ChangeLog they can look
into that :-)

Regards,
-- 
Geoff Wing : <gcw@pobox.com>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@zsh.org>       Phone   : (Australia) 0413 431 874


  reply	other threads:[~2000-04-17 11:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-10  7:26 Sven Wischnowsky
2000-04-17 11:14 ` Geoff Wing [this message]
2000-04-10  8:03 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrn8flsh7.5ip.mason@coral.primenet.com.au \
    --to=mason@primenet.com.au \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).