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

[STGIT] AssertionError on stg rebase

From
HHHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Date
Feb 13, 2011, 19:35 UTC
Message-ID
<20110213193534.GA2437@khazad-dum.debian.net>
(please keep me CC'd, I am currently not subscribed to the git ML)

It appears stgit dislikes something on the v2.6.27 longterm tree, or something else is hosed on my system. It is causing me a lot of trouble, I now have a few backport branches that are unusable, and that I'd like very much to fix...

Tested with stgit 0.15, and also stgit "proposed" branch. Debian squeeze, both in ia32 and x86-64.

Here is a testcase to reproduce the problem:

$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/longterm/linux-2.6.27.y.git $ cd linux-2.6.27.y $ git reset --hard v2.6.27.53 $ stg init $ stg new test-patch-1 $ echo "something" > changedfile $ git add changedfile $ stg refresh

$ stg rebase v2.6.27.58
Checking for changes in the working directory ... done
Popping all applied patches ... done
Rebasing to "v2.6.27.58" ... done
Pushing patch "test-patch-1" ... done
Now at patch "test-patch-1"
Traceback (most recent call last):
  File "/usr/bin/stg", line 44, in <module>
    main()
  File "/usr/lib/pymodules/python2.6/stgit/main.py", line 175, in main
    _main()
  File "/usr/lib/pymodules/python2.6/stgit/main.py", line 170, in _main
    directory.write_log(cmd)
  File "/usr/lib/pymodules/python2.6/stgit/commands/common.py", line 537, in write_log
    log.compat_log_entry(msg)
  File "/usr/lib/pymodules/python2.6/stgit/lib/log.py", line 372, in compat_log_entry
    log_entry(stack, msg)
  File "/usr/lib/pymodules/python2.6/stgit/lib/log.py", line 328, in log_entry
    new_log.write_commit()
  File "/usr/lib/pymodules/python2.6/stgit/lib/log.py", line 283, in write_commit
    tree = self.__tree(metadata)
  File "/usr/lib/pymodules/python2.6/stgit/lib/log.py", line 277, in __tree
    patches = dict((pn, pf(c)) for pn, c in self.patches.iteritems())
  File "/usr/lib/pymodules/python2.6/stgit/lib/log.py", line 277, in <genexpr>
    patches = dict((pn, pf(c)) for pn, c in self.patches.iteritems())
  File "/usr/lib/pymodules/python2.6/stgit/lib/log.py", line 275, in pf
    r = patch_file(self.__repo, c.data)
  File "/usr/lib/pymodules/python2.6/stgit/lib/log.py", line 116, in patch_file
    'Bottom: %s' % cd.parent.data.tree.sha1,
  File "/usr/lib/pymodules/python2.6/stgit/lib/git.py", line 426, in data
    self.__repository.cat_object(self.sha1))
  File "/usr/lib/pymodules/python2.6/stgit/lib/git.py", line 408, in parse
    assert False
AssertionError

I have other failure modes that also result on assertions, but they all look like the same basic problem, and this one is at least easy to reproduce.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
Next: Catalin Marinas
Message 1 of 2 in “[STGIT] AssertionError on stg rebase”
  1. Henrique de Moraes HolschuhFeb 13, 2011
  2. Catalin MarinasFeb 14, 2011

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.