* git-multimail: migration: Config is not iterable
@ 2014-05-29 14:22 Azat Khuzhin
2014-05-29 16:06 ` Elijah Newren
2014-05-31 14:59 ` Michael Haggerty
0 siblings, 2 replies; 4+ messages in thread
From: Azat Khuzhin @ 2014-05-29 14:22 UTC (permalink / raw)
To: git, mhagger
Hi there,
Using the latest version of git-multimail there is an issue with
migration:
$ ~azat/git-multimail/git-multimail/migrate-mailhook-config --overwrite
Traceback (most recent call last):
File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 271, in <module>
main(sys.argv[1:])
File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 268, in main
migrate_config(strict=options.strict, retain=options.retain, overwrite=options.overwrite)
File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 159, in migrate_config
if not _check_old_config_exists(old):
File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 66, in _check_old_config_exists
if name in old:
TypeError: argument of type 'Config' is not iterable
Tested on 2.6 and 2.7 python versions.
If you revert 09d0d5b92203f019763e43cef1e57f76f117d2b4 ("Get Python files to
pass pep8's tests.") there issue goes away. I understand that this is not the
right solution and I'm not the guru of python, so just let you know.
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-multimail: migration: Config is not iterable
2014-05-29 14:22 git-multimail: migration: Config is not iterable Azat Khuzhin
@ 2014-05-29 16:06 ` Elijah Newren
2014-05-31 14:59 ` Michael Haggerty
1 sibling, 0 replies; 4+ messages in thread
From: Elijah Newren @ 2014-05-29 16:06 UTC (permalink / raw)
To: Azat Khuzhin; +Cc: Git Mailing List, mhagger
On Thu, May 29, 2014 at 7:22 AM, Azat Khuzhin <a3at.mail@gmail.com> wrote:
> Hi there,
>
> Using the latest version of git-multimail there is an issue with
> migration:
>
> $ ~azat/git-multimail/git-multimail/migrate-mailhook-config --overwrite
> Traceback (most recent call last):
...
> File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 66, in _check_old_config_exists
> if name in old:
> TypeError: argument of type 'Config' is not iterable
Thanks for the report. I'm not the strongest on python data model and
its special methods but I believe I've got a fix:
https://github.com/mhagger/git-multimail/pull/58
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-multimail: migration: Config is not iterable
2014-05-29 14:22 git-multimail: migration: Config is not iterable Azat Khuzhin
2014-05-29 16:06 ` Elijah Newren
@ 2014-05-31 14:59 ` Michael Haggerty
2014-05-31 15:21 ` Azat Khuzhin
1 sibling, 1 reply; 4+ messages in thread
From: Michael Haggerty @ 2014-05-31 14:59 UTC (permalink / raw)
To: Azat Khuzhin, git; +Cc: Elijah Newren, Junio C Hamano
On 05/29/2014 04:22 PM, Azat Khuzhin wrote:
> Using the latest version of git-multimail there is an issue with
> migration:
>
> $ ~azat/git-multimail/git-multimail/migrate-mailhook-config --overwrite
> Traceback (most recent call last):
> File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 271, in <module>
> main(sys.argv[1:])
> File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 268, in main
> migrate_config(strict=options.strict, retain=options.retain, overwrite=options.overwrite)
> File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 159, in migrate_config
> if not _check_old_config_exists(old):
> File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 66, in _check_old_config_exists
> if name in old:
> TypeError: argument of type 'Config' is not iterable
>
> Tested on 2.6 and 2.7 python versions.
>
> If you revert 09d0d5b92203f019763e43cef1e57f76f117d2b4 ("Get Python files to
> pass pep8's tests.") there issue goes away. I understand that this is not the
> right solution and I'm not the guru of python, so just let you know.
Thanks for the bug report and for narrowing it down to the broken
commit. I just pushed a fix to GitHub. Let me know if it works for you
now.
Elijah: your fix is also correct, but I didn't see it before I pushed my
own solution. Sorry about that.
Junio: you don't have to worry about any of this, because the commit
that caused the breakage is not in your tree yet.
Michael
--
Michael Haggerty
mhagger@alum.mit.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-multimail: migration: Config is not iterable
2014-05-31 14:59 ` Michael Haggerty
@ 2014-05-31 15:21 ` Azat Khuzhin
0 siblings, 0 replies; 4+ messages in thread
From: Azat Khuzhin @ 2014-05-31 15:21 UTC (permalink / raw)
To: Michael Haggerty; +Cc: git, Elijah Newren, Junio C Hamano
On Sat, May 31, 2014 at 04:59:45PM +0200, Michael Haggerty wrote:
> On 05/29/2014 04:22 PM, Azat Khuzhin wrote:
> > Using the latest version of git-multimail there is an issue with
> > migration:
> >
> > $ ~azat/git-multimail/git-multimail/migrate-mailhook-config --overwrite
> > Traceback (most recent call last):
> > File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 271, in <module>
> > main(sys.argv[1:])
> > File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 268, in main
> > migrate_config(strict=options.strict, retain=options.retain, overwrite=options.overwrite)
> > File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 159, in migrate_config
> > if not _check_old_config_exists(old):
> > File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 66, in _check_old_config_exists
> > if name in old:
> > TypeError: argument of type 'Config' is not iterable
> >
> > Tested on 2.6 and 2.7 python versions.
> >
> > If you revert 09d0d5b92203f019763e43cef1e57f76f117d2b4 ("Get Python files to
> > pass pep8's tests.") there issue goes away. I understand that this is not the
> > right solution and I'm not the guru of python, so just let you know.
>
> Thanks for the bug report and for narrowing it down to the broken
> commit. I just pushed a fix to GitHub. Let me know if it works for you
> now.
Yeah, it works, thanks!
--
Respectfully
Azat Khuzhin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-31 15:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-29 14:22 git-multimail: migration: Config is not iterable Azat Khuzhin
2014-05-29 16:06 ` Elijah Newren
2014-05-31 14:59 ` Michael Haggerty
2014-05-31 15:21 ` Azat Khuzhin
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).