From: Bert Wesarg <bert.wesarg@googlemail.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: git@vger.kernel.org
Subject: Re: [TopGit PATCH] hooks/pre-commit: check for cycles in dependencies
Date: Mon, 8 Jun 2009 09:31:01 +0200 [thread overview]
Message-ID: <36ca99e90906080031r3f5f545eo26c077e1966bf67@mail.gmail.com> (raw)
In-Reply-To: <20090605202526.GB671@pengutronix.de>
2009/6/5 Uwe Kleine-König <u.kleine-koenig@pengutronix.de>:
> Hi Bert,
Hi, Uwe,
>
> On Thu, Jun 04, 2009 at 10:41:13PM +0200, Bert Wesarg wrote:
>> Only newly added dependencies needs to be considered. For each of these deps
>> check if there is a path from this dep to the current HEAD.
>>
>> Use recursive_dep() for this task. Even if recursive_dep() uses a DFS-like
>> traversal it will not run into an infty-loop if there would be a cycle, because
> I'm not sure how understandable this is. After some thinking I
> understood DFS. Up to now I thought infty is just the LaTeX macro name
> for "infinity", but apart of this, is this really the right term here?
> endless loop?
Yeah, 'endless loop' is the right term here.
>
>> recursive_dep() takes .topdeps only from committed trees. And it is required
>> that the committed dependency graph is acyclic.
>
> I didn't check the implementation deeply. But all in all I don't have
> the usual warm and fuzzy feeling about it. What happens during a remote
> update if only the merged dependency graph has a cycle[1]?
I suspect the merge commit, which would introduce this cycle, will abort.
BTW: Do you have any infos or need help on your TopGit successor?
Bye,
Bert
>
> Best regards
> Uwe
>
> [1] The question is a bit theoretic because remote updating is broken
> here. If you are my remote and changed a .topdep file, my update simply
> discards your change.
>
> --
> Pengutronix e.K. | Uwe Kleine-König |
> Industrial Linux Solutions | http://www.pengutronix.de/ |
>
next prev parent reply other threads:[~2009-06-08 7:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-04 20:41 [TopGit PATCH] hooks/pre-commit: check for cycles in dependencies Bert Wesarg
2009-06-04 21:33 ` Bert Wesarg
2009-06-05 20:25 ` Uwe Kleine-König
2009-06-08 7:31 ` Bert Wesarg [this message]
2009-06-08 7:44 ` TopGit successor Uwe Kleine-König
-- strict thread matches above, loose matches on Subject: below --
2010-10-04 21:07 [TopGit PATCH] hooks/pre-commit: check for cycles in dependencies Bert Wesarg
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=36ca99e90906080031r3f5f545eo26c077e1966bf67@mail.gmail.com \
--to=bert.wesarg@googlemail.com \
--cc=git@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/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).