monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Re: I don't know if this is a good idea or not


From: Thomas Keller
Subject: Re: [Monotone-devel] Re: I don't know if this is a good idea or not
Date: Tue, 11 Dec 2007 11:59:35 +0100
User-agent: Thunderbird 2.0.0.9 (X11/20071031)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Koen Kooi schrieb:
> Thomas Keller schreef:
>> Koen Kooi schrieb:
> 
>>> I get:
>>> Powerbook-2:org.openembedded.dev.avr32 koen$ mtn changelog MAINTAINERS
>>> mtn: warning: _MTN/monotonerc:117: attempt to concatenate field '?' (a
>>> nil value)
>>> mtn: error: Call to user command changelog (lua command:
>>> output_changelog) failed.
>>> Powerbook-2:org.openembedded.dev.avr32 koen$ mtn --version
>>> monotone 0.37 (base revision: c21eefc002b8f9c430e9f4cc16c4af7b852f54ec)
>>> The error is from this portion (line numbers added):
>>> 115  changelog_revs = split_string(changelog_revs, "%s*(%S*)%s+")
>>> 116  result,changelog_revs = mtn_automate("toposort",
>>> unpack(changelog_revs))
>>> 117  changelog_revs2 = release_revs[#release_revs] .. " " ..
>>> changelog_revs .. " "
>>> 118  changelog_revs = table.reverse(split_string(changelog_revs2,
>>> "%s*(%S*)%s+"))
>>> any idea what is causing this error?
>> There is no tagged release revision yet, therefor
>> release_revs[#release_revs] is a Nil value. I emailed him about this
>> (and other stuff) already. Try to `mtn release RELEASE_NUMBER REV_ID`
>> before.
> 
> Ok, setting that to somewhere last friday:
> 
> $ mtn release 0.0.0 0e4a2bbb7147a46977d9c8085b4fd469d11ab2a2
> $ mtn changelog MAINTAINERS
> 
> mtn: warning: _MTN/monotonerc:137: attempt to index local
> 'skip_patterns' (a nil value)
> mtn: error: Call to user command changelog (lua command:
> output_changelog) failed.
> 
> the MAINTAINERS file didn't have a cset in the
> 0e4a2bbb7147a46977d9c8085b4fd469d11ab2a2 <> now period, could that be a
> reason?

No, this error comes from the fact you probably have no changelog_ignore
file yet and the code here

  local skip_patterns = io.open(get_confdir() .. "/changelog_ignore", "r")
  if skip_patterns then
    for pattern in skip_patterns:lines() do
      table.insert(skip_pattern_list, pattern)
    end
  end
  skip_patterns:close()

should actually read like this in this case:

  local skip_patterns = io.open(get_confdir() .. "/changelog_ignore", "r")
  if skip_patterns then
    for pattern in skip_patterns:lines() do
      table.insert(skip_pattern_list, pattern)
    end
    skip_patterns:close()
  end

Still, even after I fixed that I didn't manage to output the log
messages, obviously there are revisions for me which are crawled.
Haven't looked further into it though, now you're on your own ;)

Thomas.

- --
only dead fish swim with the stream: http://thomaskeller.biz/blog
Für Freiheit und gegen staatliche Überwachungsmaßnahmen:
http://leipzig.vorratsdatenspeicherung.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHXm2Xaf7NlBYNEJIRAssxAJ45YKA2Fh+pjFvTFxtzeREFVCc1ZQCg7hgO
Ds0WSFT2gJZ4fDOHZ7x5eGc=
=0/BR
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]