Discussion:
[Be-devel] be set target
Luis Belmar-Letelier
2013-07-27 23:35:49 UTC
Permalink
Hello,

Perhaps I use not correctly the set command

I get this:

$ be set target v1.5
Traceback (most recent call last):
File "/usr/bin/be", line 26, in <module>
sys.exit(libbe.ui.command_line.main())
File "/usr/lib/python2.7/site-packages/libbe/ui/command_line.py", line
392, in main
ret = dispatch(ui, command, args)
File "/usr/lib/python2.7/site-packages/libbe/ui/command_line.py", line
305, in dispatch
ret = ui.run(command, options, args)
File "/usr/lib/python2.7/site-packages/libbe/command/base.py", line 590,
in run
return command.run(options, args)
File "/usr/lib/python2.7/site-packages/libbe/command/base.py", line 302,
in run
self.status = self._run(**params)
File "/usr/lib/python2.7/site-packages/libbe/command/set.py", line 105,
in _run
setattr(bugdir, attr, params['value'])
File "/usr/lib/python2.7/site-packages/libbe/storage/util/properties.py",
line 214, in _fset
fset(self, value)
File "/usr/lib/python2.7/site-packages/libbe/storage/util/properties.py",
line 403, in _fset
hook(self, old_value, value)
File
"/usr/lib/python2.7/site-packages/libbe/storage/util/settings_object.py",
line 61, in prop_save_settings
self.save_settings()
File "/usr/lib/python2.7/site-packages/libbe/bugdir.py", line 198, in
save_settings
self.storage.set(self.id.storage('settings'), mf)
File "/usr/lib/python2.7/site-packages/libbe/storage/base.py", line 360,
in set
self._set(id, value, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/libbe/storage/vcs/base.py", line
863, in _set
raise InvalidID(id)
libbe.storage.base.InvalidID: edce2f3e-8966-454c-aa99-8ef8064a321a/settings
in revision None


Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://void.printf.net/pipermail/be-devel/attachments/20130728/d4ddcb35/attachment.htm>
W. Trevor King
2013-07-29 17:04:46 UTC
Permalink
A few weeks ago, Mike Sperber pointed out that this wasn't working as
advertised [1], so you'll have to switch to the master branch until I
cut a new release.
Oops, forgot my reference:

[1]: http://thread.gmane.org/gmane.comp.bug-tracking.bugs-everywhere.devel/992
--
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://void.printf.net/pipermail/be-devel/attachments/20130729/12b80e32/attachment.pgp>
W. Trevor King
2013-07-29 17:03:15 UTC
Permalink
Post by Luis Belmar-Letelier
$ be set target v1.5
?
File "/usr/lib/python2.7/site-packages/libbe/storage/vcs/base.py", line
863, in _set
raise InvalidID(id)
libbe.storage.base.InvalidID: edce2f3e-8966-454c-aa99-8ef8064a321a/settings
in revision None
Hmm, that's not the most helpful error message :p. If you look in
doc/tutorial.txt or `be target --help`, you'll see that the suggested
usage is something like:

$ be set target $(be target --resolve SUMMARY)

A few weeks ago, Mike Sperber pointed out that this wasn't working as
advertised [1], so you'll have to switch to the master branch until I
cut a new release. I'll try and track down the reason for the awkward
error message, but I probably won't have time until the weekend.

Cheers,
Trevor
--
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://void.printf.net/pipermail/be-devel/attachments/20130729/dd26d177/attachment.pgp>
Loading...