* [U-Boot] Problem with first use of patman
@ 2012-10-14 18:52 Albert ARIBAUD
2012-10-14 21:13 ` Daniel Schwierzeck
2012-10-14 23:53 ` Simon Glass
0 siblings, 2 replies; 8+ messages in thread
From: Albert ARIBAUD @ 2012-10-14 18:52 UTC (permalink / raw)
To: u-boot
Hello Simon and the list,
I'm trying to start using patman, and -- probably out of sheer
ignorance -- cannot make it work.
I've defined my .patman file with aliases for mvgbe, lacie_kw, arm,
arm926ejs etc.
I am trying to generate patches from a local branch (which I have made
available on the u-boot-arm repo as 'add-ws-support') which has two
commits.
Top commit contains some matman tags, but the error is the without any
tag.
The complete error is:
albert at lilith:~/src/u-boot-arm$ tools/patman/patman -n -c2
Traceback (most recent call last):
File "tools/patman/patman", line 125, in <module>
series = patchstream.GetMetaData(options.start, options.count)
File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line
352, in GetMetaData ps.ProcessLine(line)
File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line
190, in ProcessLine self.commit.subject = line
AttributeError: 'NoneType' object has no attribute 'subject'
albert at lilith:~/src/u-boot-arm$
Can Simon (or someone who's already bumped into this error) tell me what
I'm doing wrong?
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 8+ messages in thread* [U-Boot] Problem with first use of patman 2012-10-14 18:52 [U-Boot] Problem with first use of patman Albert ARIBAUD @ 2012-10-14 21:13 ` Daniel Schwierzeck 2012-10-14 21:40 ` Albert ARIBAUD 2012-10-14 23:53 ` Simon Glass 1 sibling, 1 reply; 8+ messages in thread From: Daniel Schwierzeck @ 2012-10-14 21:13 UTC (permalink / raw) To: u-boot Hi Albert, 2012/10/14 Albert ARIBAUD <albert.u.boot@aribaud.net>: > Hello Simon and the list, > > I'm trying to start using patman, and -- probably out of sheer > ignorance -- cannot make it work. > > I've defined my .patman file with aliases for mvgbe, lacie_kw, arm, > arm926ejs etc. > > I am trying to generate patches from a local branch (which I have made > available on the u-boot-arm repo as 'add-ws-support') which has two > commits. > > Top commit contains some matman tags, but the error is the without any > tag. > > The complete error is: > > albert at lilith:~/src/u-boot-arm$ tools/patman/patman -n -c2 > Traceback (most recent call last): > File "tools/patman/patman", line 125, in <module> > series = patchstream.GetMetaData(options.start, options.count) > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line > 352, in GetMetaData ps.ProcessLine(line) > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line > 190, in ProcessLine self.commit.subject = line > AttributeError: 'NoneType' object has no attribute 'subject' > albert at lilith:~/src/u-boot-arm$ > > Can Simon (or someone who's already bumped into this error) tell me what > I'm doing wrong? > I've had the same issue. Try the --no-tags option. Without that option all tags in the commit summary (e.g. 'arm: some-board: some commit summary') will be parsed which causes several errors. -- Best regards, Daniel ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Problem with first use of patman 2012-10-14 21:13 ` Daniel Schwierzeck @ 2012-10-14 21:40 ` Albert ARIBAUD 2012-10-14 21:58 ` Daniel Schwierzeck 0 siblings, 1 reply; 8+ messages in thread From: Albert ARIBAUD @ 2012-10-14 21:40 UTC (permalink / raw) To: u-boot Hi Daniel, On Sun, 14 Oct 2012 23:13:22 +0200, Daniel Schwierzeck <daniel.schwierzeck@gmail.com> wrote: > Hi Albert, > > 2012/10/14 Albert ARIBAUD <albert.u.boot@aribaud.net>: > > Hello Simon and the list, > > > > I'm trying to start using patman, and -- probably out of sheer > > ignorance -- cannot make it work. > > > > I've defined my .patman file with aliases for mvgbe, lacie_kw, arm, > > arm926ejs etc. > > > > I am trying to generate patches from a local branch (which I have made > > available on the u-boot-arm repo as 'add-ws-support') which has two > > commits. > > > > Top commit contains some matman tags, but the error is the without any > > tag. > > > > The complete error is: > > > > albert at lilith:~/src/u-boot-arm$ tools/patman/patman -n -c2 > > Traceback (most recent call last): > > File "tools/patman/patman", line 125, in <module> > > series = patchstream.GetMetaData(options.start, options.count) > > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line > > 352, in GetMetaData ps.ProcessLine(line) > > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line > > 190, in ProcessLine self.commit.subject = line > > AttributeError: 'NoneType' object has no attribute 'subject' > > albert at lilith:~/src/u-boot-arm$ > > > > Can Simon (or someone who's already bumped into this error) tell me what > > I'm doing wrong? > > > > I've had the same issue. Try the --no-tags option. Without that option all tags > in the commit summary (e.g. 'arm: some-board: some commit summary') will be > parsed which causes several errors. Thanks for the suggestion. However, /tools/patman/patman --no-tags -n -c2 gives the same error messages. :( Amicalement, -- Albert. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Problem with first use of patman 2012-10-14 21:40 ` Albert ARIBAUD @ 2012-10-14 21:58 ` Daniel Schwierzeck 2012-10-14 22:13 ` Albert ARIBAUD 0 siblings, 1 reply; 8+ messages in thread From: Daniel Schwierzeck @ 2012-10-14 21:58 UTC (permalink / raw) To: u-boot 2012/10/14 Albert ARIBAUD <albert.u.boot@aribaud.net>: > Hi Daniel, > > On Sun, 14 Oct 2012 23:13:22 +0200, Daniel Schwierzeck > <daniel.schwierzeck@gmail.com> wrote: > >> Hi Albert, >> >> 2012/10/14 Albert ARIBAUD <albert.u.boot@aribaud.net>: >> > Hello Simon and the list, >> > >> > I'm trying to start using patman, and -- probably out of sheer >> > ignorance -- cannot make it work. >> > >> > I've defined my .patman file with aliases for mvgbe, lacie_kw, arm, >> > arm926ejs etc. >> > >> > I am trying to generate patches from a local branch (which I have made >> > available on the u-boot-arm repo as 'add-ws-support') which has two >> > commits. >> > >> > Top commit contains some matman tags, but the error is the without any >> > tag. >> > >> > The complete error is: >> > >> > albert at lilith:~/src/u-boot-arm$ tools/patman/patman -n -c2 >> > Traceback (most recent call last): >> > File "tools/patman/patman", line 125, in <module> >> > series = patchstream.GetMetaData(options.start, options.count) >> > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line >> > 352, in GetMetaData ps.ProcessLine(line) >> > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line >> > 190, in ProcessLine self.commit.subject = line >> > AttributeError: 'NoneType' object has no attribute 'subject' >> > albert at lilith:~/src/u-boot-arm$ >> > >> > Can Simon (or someone who's already bumped into this error) tell me what >> > I'm doing wrong? >> > >> >> I've had the same issue. Try the --no-tags option. Without that option all tags >> in the commit summary (e.g. 'arm: some-board: some commit summary') will be >> parsed which causes several errors. > > Thanks for the suggestion. > > However, /tools/patman/patman --no-tags -n -c2 gives the same > error messages. :( > another workaround you could try is: export LANG=C patman does not work with a default locale other than english -- Best regards, Daniel ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Problem with first use of patman 2012-10-14 21:58 ` Daniel Schwierzeck @ 2012-10-14 22:13 ` Albert ARIBAUD 0 siblings, 0 replies; 8+ messages in thread From: Albert ARIBAUD @ 2012-10-14 22:13 UTC (permalink / raw) To: u-boot Hi Daniel, On Sun, 14 Oct 2012 23:58:51 +0200, Daniel Schwierzeck <daniel.schwierzeck@gmail.com> wrote: > 2012/10/14 Albert ARIBAUD <albert.u.boot@aribaud.net>: > > Hi Daniel, > > > > On Sun, 14 Oct 2012 23:13:22 +0200, Daniel Schwierzeck > > <daniel.schwierzeck@gmail.com> wrote: > > > >> Hi Albert, > >> > >> 2012/10/14 Albert ARIBAUD <albert.u.boot@aribaud.net>: > >> > Hello Simon and the list, > >> > > >> > I'm trying to start using patman, and -- probably out of sheer > >> > ignorance -- cannot make it work. > >> > > >> > I've defined my .patman file with aliases for mvgbe, lacie_kw, arm, > >> > arm926ejs etc. > >> > > >> > I am trying to generate patches from a local branch (which I have made > >> > available on the u-boot-arm repo as 'add-ws-support') which has two > >> > commits. > >> > > >> > Top commit contains some matman tags, but the error is the without any > >> > tag. > >> > > >> > The complete error is: > >> > > >> > albert at lilith:~/src/u-boot-arm$ tools/patman/patman -n -c2 > >> > Traceback (most recent call last): > >> > File "tools/patman/patman", line 125, in <module> > >> > series = patchstream.GetMetaData(options.start, options.count) > >> > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line > >> > 352, in GetMetaData ps.ProcessLine(line) > >> > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line > >> > 190, in ProcessLine self.commit.subject = line > >> > AttributeError: 'NoneType' object has no attribute 'subject' > >> > albert at lilith:~/src/u-boot-arm$ > >> > > >> > Can Simon (or someone who's already bumped into this error) tell me what > >> > I'm doing wrong? > >> > > >> > >> I've had the same issue. Try the --no-tags option. Without that option all tags > >> in the commit summary (e.g. 'arm: some-board: some commit summary') will be > >> parsed which causes several errors. > > > > Thanks for the suggestion. > > > > However, /tools/patman/patman --no-tags -n -c2 gives the same > > error messages. :( > > > > another workaround you could try is: export LANG=C > patman does not work with a default locale other than english Tried LANG=C (and LC_ALL=C), no change. :( Amicalement, -- Albert. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Problem with first use of patman 2012-10-14 18:52 [U-Boot] Problem with first use of patman Albert ARIBAUD 2012-10-14 21:13 ` Daniel Schwierzeck @ 2012-10-14 23:53 ` Simon Glass 2012-10-15 5:45 ` [U-Boot] Problem with first use of patman [FIXED] Albert ARIBAUD 1 sibling, 1 reply; 8+ messages in thread From: Simon Glass @ 2012-10-14 23:53 UTC (permalink / raw) To: u-boot Hi Albert, On Sun, Oct 14, 2012 at 11:52 AM, Albert ARIBAUD <albert.u.boot@aribaud.net> wrote: > Hello Simon and the list, > > I'm trying to start using patman, and -- probably out of sheer > ignorance -- cannot make it work. Not a good first experience, sorry! > > I've defined my .patman file with aliases for mvgbe, lacie_kw, arm, > arm926ejs etc. > > I am trying to generate patches from a local branch (which I have made > available on the u-boot-arm repo as 'add-ws-support') which has two > commits. > > Top commit contains some matman tags, but the error is the without any > tag. > > The complete error is: > > albert at lilith:~/src/u-boot-arm$ tools/patman/patman -n -c2 > Traceback (most recent call last): > File "tools/patman/patman", line 125, in <module> > series = patchstream.GetMetaData(options.start, options.count) > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line > 352, in GetMetaData ps.ProcessLine(line) > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line > 190, in ProcessLine self.commit.subject = line > AttributeError: 'NoneType' object has no attribute 'subject' > albert at lilith:~/src/u-boot-arm$ > > Can Simon (or someone who's already bumped into this error) tell me what > I'm doing wrong? I am really not sure about this. I can't seem to repeat the problem with your branch. I am pretty sure from your backtrace that it is parsing the 'git log' output, and seeing a subject before it has seen a commit. It is possible that your 'git log' output is non-standard? Perhaps you could post that to the list? It expects to see: commit <hash> Author: ... Date: ... <blank line> commit subject <commit lines if any> commit <hash> Author ... You could put a 'print line, self.state' at the top of ProcessLine() in patchstream.py and that might help me debug it. Regards, SImon > > Amicalement, > -- > Albert. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Problem with first use of patman [FIXED] 2012-10-14 23:53 ` Simon Glass @ 2012-10-15 5:45 ` Albert ARIBAUD 2012-10-15 17:17 ` Simon Glass 0 siblings, 1 reply; 8+ messages in thread From: Albert ARIBAUD @ 2012-10-15 5:45 UTC (permalink / raw) To: u-boot Hi Simon, On Sun, 14 Oct 2012 16:53:03 -0700, Simon Glass <sjg@chromium.org> wrote: > Hi Albert, > > On Sun, Oct 14, 2012 at 11:52 AM, Albert ARIBAUD > <albert.u.boot@aribaud.net> wrote: > > Hello Simon and the list, > > > > I'm trying to start using patman, and -- probably out of sheer > > ignorance -- cannot make it work. > > Not a good first experience, sorry! > > > > > I've defined my .patman file with aliases for mvgbe, lacie_kw, arm, > > arm926ejs etc. > > > > I am trying to generate patches from a local branch (which I have made > > available on the u-boot-arm repo as 'add-ws-support') which has two > > commits. > > > > Top commit contains some matman tags, but the error is the without any > > tag. > > > > The complete error is: > > > > albert at lilith:~/src/u-boot-arm$ tools/patman/patman -n -c2 > > Traceback (most recent call last): > > File "tools/patman/patman", line 125, in <module> > > series = patchstream.GetMetaData(options.start, options.count) > > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line > > 352, in GetMetaData ps.ProcessLine(line) > > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line > > 190, in ProcessLine self.commit.subject = line > > AttributeError: 'NoneType' object has no attribute 'subject' > > albert at lilith:~/src/u-boot-arm$ > > > > Can Simon (or someone who's already bumped into this error) tell me what > > I'm doing wrong? > > I am really not sure about this. I can't seem to repeat the problem > with your branch. > > I am pretty sure from your backtrace that it is parsing the 'git log' > output, and seeing a subject before it has seen a commit. It is > possible that your 'git log' output is non-standard? Perhaps you could > post that to the list? > > It expects to see: > > commit <hash> > Author: ... > Date: ... > <blank line> > commit subject > <commit lines if any> > commit <hash> > Author ... > > > You could put a 'print line, self.state' at the top of ProcessLine() > in patchstream.py and that might help me debug it. Thanks! Your hint about 'git log' made me find the cause of the problem. My git log content is in no way special... except it has color ( 'ui = always' in my .gitconfig) ! This is what troubled patman: trying with the color spec in .git config commented out, it works ok. I have located two places in patman where it calls git log, added option --no-color to them, verified that it worked with color.ui=auto in my .gitconfig... then used patman to send these very fixes to the list. :) > Regards, > SImon Amicalement, -- Albert. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Problem with first use of patman [FIXED] 2012-10-15 5:45 ` [U-Boot] Problem with first use of patman [FIXED] Albert ARIBAUD @ 2012-10-15 17:17 ` Simon Glass 0 siblings, 0 replies; 8+ messages in thread From: Simon Glass @ 2012-10-15 17:17 UTC (permalink / raw) To: u-boot Hi Albert, On Sun, Oct 14, 2012 at 10:45 PM, Albert ARIBAUD <albert.u.boot@aribaud.net> wrote: > Hi Simon, > > On Sun, 14 Oct 2012 16:53:03 -0700, Simon Glass <sjg@chromium.org> > wrote: > >> Hi Albert, >> >> On Sun, Oct 14, 2012 at 11:52 AM, Albert ARIBAUD >> <albert.u.boot@aribaud.net> wrote: >> > Hello Simon and the list, >> > >> > I'm trying to start using patman, and -- probably out of sheer >> > ignorance -- cannot make it work. >> >> Not a good first experience, sorry! >> >> > >> > I've defined my .patman file with aliases for mvgbe, lacie_kw, arm, >> > arm926ejs etc. >> > >> > I am trying to generate patches from a local branch (which I have made >> > available on the u-boot-arm repo as 'add-ws-support') which has two >> > commits. >> > >> > Top commit contains some matman tags, but the error is the without any >> > tag. >> > >> > The complete error is: >> > >> > albert at lilith:~/src/u-boot-arm$ tools/patman/patman -n -c2 >> > Traceback (most recent call last): >> > File "tools/patman/patman", line 125, in <module> >> > series = patchstream.GetMetaData(options.start, options.count) >> > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line >> > 352, in GetMetaData ps.ProcessLine(line) >> > File "/home/albert/src/u-boot-arm/tools/patman/patchstream.py", line >> > 190, in ProcessLine self.commit.subject = line >> > AttributeError: 'NoneType' object has no attribute 'subject' >> > albert at lilith:~/src/u-boot-arm$ >> > >> > Can Simon (or someone who's already bumped into this error) tell me what >> > I'm doing wrong? >> >> I am really not sure about this. I can't seem to repeat the problem >> with your branch. >> >> I am pretty sure from your backtrace that it is parsing the 'git log' >> output, and seeing a subject before it has seen a commit. It is >> possible that your 'git log' output is non-standard? Perhaps you could >> post that to the list? >> >> It expects to see: >> >> commit <hash> >> Author: ... >> Date: ... >> <blank line> >> commit subject >> <commit lines if any> >> commit <hash> >> Author ... >> >> >> You could put a 'print line, self.state' at the top of ProcessLine() >> in patchstream.py and that might help me debug it. > > Thanks! Your hint about 'git log' made me find the cause of the problem. > > My git log content is in no way special... except it has color ( 'ui = > always' in my .gitconfig) ! This is what troubled patman: trying with > the color spec in .git config commented out, it works ok. > > I have located two places in patman where it calls git log, added > option --no-color to them, verified that it worked with color.ui=auto > in my .gitconfig... then used patman to send these very fixes to the > list. :) That's great to hear, and thanks for the patch. > Amicalement, > -- > Albert. Regards, Simon ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-10-15 17:17 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-10-14 18:52 [U-Boot] Problem with first use of patman Albert ARIBAUD 2012-10-14 21:13 ` Daniel Schwierzeck 2012-10-14 21:40 ` Albert ARIBAUD 2012-10-14 21:58 ` Daniel Schwierzeck 2012-10-14 22:13 ` Albert ARIBAUD 2012-10-14 23:53 ` Simon Glass 2012-10-15 5:45 ` [U-Boot] Problem with first use of patman [FIXED] Albert ARIBAUD 2012-10-15 17:17 ` Simon Glass
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox