From: "Catalin Marinas" <catalin.marinas@gmail.com>
To: "Pavel Roskin" <proski@gnu.org>
Cc: git@vger.kernel.org
Subject: Re: AssertionError in "stg uncommit" when going too far back
Date: Sat, 8 Mar 2008 12:19:58 +0000 [thread overview]
Message-ID: <b0943d9e0803080419y6373ce62xfb108a15203858c7@mail.gmail.com> (raw)
In-Reply-To: <1204753622.17845.16.camel@dv>
On 05/03/2008, Pavel Roskin <proski@gnu.org> wrote:
> "stg uncommit" causes AssertionError if the number commits to uncommit it too large:
>
> $ stg uncommit -n 10000
> Uncommitting 10000 patches ... Traceback (most recent call last):
> File "/home/proski/bin/stg", line 43, in <module>
> main()
> File "home/proski/lib/python2.5/site-packages/stgit/main.py", line 278, in main
> File "home/proski/lib/python2.5/site-packages/stgit/commands/uncommit.py", line 94, in func
> File "home/proski/lib/python2.5/site-packages/stgit/lib/git.py", line 171, in parent
> AssertionError
That's on the master branch. I think on the stable one, it used to
report a message like "Commit doesn't have exactly one parent".
In the latest version, we should indeed raise an exception rather than
just assert. I wouldn't declare a new exception class but rather use
an existing one with a meaningful error message. We can't recover from
this anyway and we would simply cancel the operation. I'll let Karl
comment on this as well.
Thanks for reporting it.
--
Catalin
prev parent reply other threads:[~2008-03-08 12:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 21:47 AssertionError in "stg uncommit" when going too far back Pavel Roskin
2008-03-08 12:19 ` Catalin Marinas [this message]
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=b0943d9e0803080419y6373ce62xfb108a15203858c7@mail.gmail.com \
--to=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
--cc=proski@gnu.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).