From: Henrique de Moraes Holschuh Date: Sun, 13 Feb 2011 19:35:34 GMT Subject: [STGIT] AssertionError on stg rebase 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 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 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