git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/2] Changed rebasing safety check to look for reachability of stack base (gna bug #9181).

From
David Kågedal <davidk@lysator.liu.se>
Date
Jun 4, 2007, 13:42 UTC
Message-ID
<878xazbzup.fsf@morpheus.local>
In-Reply-To
<20070603134152.1681.82748.stgit@gandelf.nowhere.earth>
Yann Dirson <ydirson@altern.org> writes:
Show 17 quoted lines
> --- a/stgit/commands/pull.py
> +++ b/stgit/commands/pull.py
> @@ -77,16 +77,12 @@ def func(parser, options, args):
>      check_conflicts()
>      check_head_top_equal()
>  
> -    if policy == 'pull':
> -        must_rebase = 0
> -    elif policy == 'fetch-rebase':
> -        must_rebase = 1
> -    elif policy == 'rebase':
> -        must_rebase = 1
> -    else:
> +    if (policy != 'pull') \
> +           and (policy != 'fetch-rebase') \
> +           and (policy != 'rebase'):
>          raise GitConfigException, 'Unsupported pull-policy "%s"' % policy
Minor nit: I think this is much more clearly written as
    if policy not in ('pull', 'fetch-rebase', 'rebase'):
-- 
David Kågedal
Previous: Yann DirsonNext: Yann Dirson
Message 3 of 5 in “Fixing the rebase safeguard”
  1. 0/2 Fixing the rebase safeguardYann Dirson, Jun 3, 2007
  2. 1/2 Changed rebasing safety check to look for reachability of stack base (gna bug #9181).Yann Dirson, Jun 3, 2007
  3. David KågedalJun 4, 2007
  4. 2/2 Test "stg rebase" after "stg commit"Yann Dirson, Jun 3, 2007
  5. Catalin MarinasJun 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.