From: Kristis Makris <kristis.makris-tTJs1oqo2yY@public.gmane.org>
To: Jan Hudec <bulb-+ZI9xUNit7I@public.gmane.org>
Cc: Andreas Ericsson <ae-n0Zl8IkGad4@public.gmane.org>,
scmbug-users-G8y9j4K4DsPiwOUmbS1EgQ@public.gmane.org,
git-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Jakub Narebski <jnareb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: Git and tagging hook
Date: Tue, 14 Oct 2008 11:03:21 -0700 [thread overview]
Message-ID: <1224007401.4073.40.camel@localhost> (raw)
In-Reply-To: <20081014172227.GB6931-hYs7FtC5zV+YSD4dQj0czg@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 4668 bytes --]
Jan, thanks for trying to clarify this for me.
I am working on adding integration support of Git with bug-trackers,
using Scmbug. There may be an argument here towards/against distributed
bug-trackers when it comes to Git.
Maybe there are things here I don't fully understand yet.
On Tue, 2008-10-14 at 19:22 +0200, Jan Hudec wrote:
> >>> Kristis Makris wrote:
> >>>> I want the integration when I apply the tag to a local repository, NOT
> >>>> only when I push/pull.
>
> Care to explain why that would ever be useful? It's local, which means that:
> - the user can take it back without a trace it ever happened (git tag -d or
> even git update-ref -d) and
> - noone except the user will see it anyway, so it's not like they should
> care either.
I have two use cases:
(1) A developer maintains besides his local copy a local bug-tracking
system in which he tracks his changes. We would like to apply various
verification policies when he commits or tags. For example, for tagging
we wants to ensure that he tags giving consistent labels to his
intermediate builds. e.g. as in:
http://files.mkgnu.net/files/scmbug/SCMBUG_RELEASE_0-26-9/manual/html-single/manual.html#VERIFICATION-CHECKS-CONVENTION-BASED-LABELING
Or he may want to have Git force him to also supply a log message along
with a tag, so that he can remember later more accurately why a tag was
created and what it really captures. Even if Git (or other SCM systems)
don't natively support log messages on tags. Scmbug plans to implement
this.
http://bugzilla.mkgnu.net/show_bug.cgi?id=219
(2) I would like to apply various verification policies when work from a
local repository is finally merged with the central repository. I assume
there can/will be a central repository, and there is one "software
product" that is being released somewhere among the many copies.
When its time to merge local changes to a central repository, the
verification policies may deem that changes are not acceptable to be
merged with the mainline. e.g. because log messages are too short,
commits during the merge are issued against bugs in "a central"
bugtracker that are either closed, assigned to someone else, or just
plain wrong bug-numbers that belong to other products:
http://files.mkgnu.net/files/scmbug/SCMBUG_RELEASE_0-26-9/manual/html-single/manual.html#VERIFICATION-CHECKS-VALID-LOG-MESSAGE-SIZE
http://files.mkgnu.net/files/scmbug/SCMBUG_RELEASE_0-26-9/manual/html-single/manual.html#VERIFICATION-CHECKS-OPEN-BUG-STATE
http://files.mkgnu.net/files/scmbug/SCMBUG_RELEASE_0-26-9/manual/html-single/manual.html#VERIFICATION-CHECKS-VALID-BUG-OWNER
http://files.mkgnu.net/files/scmbug/SCMBUG_RELEASE_0-26-9/manual/html-single/manual.html#VERIFICATION-CHECKS-VALID-PRODUCT-NAME
(I'm not very clear whether this is how Git works)
Does someone get to write-up a brand new log comment during the merge
and the merge totally disregards older log comments ? My understanding
is that log comments on the local copy are preserved (and will need to
be mapped to bug-numbers in the central bug-tracker.
Thus the local verification policies may need to have already been
configured to comply with future verification policies of the central
repository. Else (perhaps considerable) mappings/adjustments will be
needed during the push to the central copy.
> Besides, you don't need git tag to create a tag in git, so the hook wouldn't
> really be guaranteed anyway (I mean, just like the commit hook is not -- you
> can still commit by calling write-tree, commit-tree and update-ref and avoid
> the hook).
I'm assuming someone who follows the recommended avenue of using Git
wants the advantages of hooks. I certainly can't force people that
bypass hooks to use them.
> For integration with issue tracker, the local tag is neither final, nor
> useful to anybody except the user who did it until it hits the central
> repository. And working on the central repository directly does not seem like
> a good idea either.
The local tag is useful to the local user and his local bug-tracker. He
can have tag operations intercepted so that the tag names show up as
versions in his bug-tracker. In this way he can keep track of which bugs
still exist or have recently been introduced/discovered to his local
copy, before he decides to publish his polished, final version:
http://files.mkgnu.net/files/scmbug/SCMBUG_RELEASE_0-26-9/manual/html-single/manual.html#TAGS
And his "local bug-tracker" may be reachable on the web and useful by
others that take a peek at the users progress (even fetching it with
Git).
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 188 bytes --]
_______________________________________________
scmbug-users mailing list
scmbug-users-G8y9j4K4DsPiwOUmbS1EgQ@public.gmane.org
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
next prev parent reply other threads:[~2008-10-14 18:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-06 4:45 Git and tagging hook Kristis Makris
2008-10-06 7:17 ` Andreas Ericsson
2008-10-07 17:13 ` Kristis Makris
2008-10-07 17:28 ` Jakub Narebski
2008-10-08 16:47 ` Kristis Makris
2008-10-08 17:40 ` Andreas Ericsson
2008-10-14 17:22 ` Jan Hudec
[not found] ` <20081014172227.GB6931-hYs7FtC5zV+YSD4dQj0czg@public.gmane.org>
2008-10-14 18:03 ` Kristis Makris [this message]
2008-10-14 20:49 ` Andreas Ericsson
2008-10-14 21:33 ` Daniel Barkalow
2008-10-16 20:15 ` Jan Hudec
2008-10-17 7:04 ` Andreas Ericsson
2008-10-06 7:20 ` Andreas Ericsson
2008-10-07 17:30 ` Kristis Makris
2008-10-08 6:12 ` Andreas Ericsson
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=1224007401.4073.40.camel@localhost \
--to=kristis.makris-ttjs1oqo2yy@public.gmane.org \
--cc=ae-n0Zl8IkGad4@public.gmane.org \
--cc=bulb-+ZI9xUNit7I@public.gmane.org \
--cc=git-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=jnareb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=scmbug-users-G8y9j4K4DsPiwOUmbS1EgQ@public.gmane.org \
/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.
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).