Bookmarks plugin does not create bazaar.conf file

Bug #247580 reported by Alexandre Garnier
2
Affects Status Importance Assigned to Milestone
Bazaar Bookmarks Plugin
Fix Released
Medium
Lukáš Lalinský

Bug Description

If ~/.bazaar/bazaar.conf does not yet exist, bookmarks does not create it and report an error :
bzr: ERROR: [Errno 2] No such file or directory: '/home/test/.bazaar/bazaar.conf'

It would be nice to create this file if needed just like e.g. whoami command.

.bzr.log :
0.112 encoding stdout as sys.stdout encoding 'ISO-8859-1'
0.114 bzr arguments: [u'bookmark', u'bookmark', u'https://launchpad.net/bzr-bookmarks/']
0.114 looking for plugins in /share/bazaar/plugins
0.185 looking for plugins in /home/test/.bazaar/plugins
0.185 looking for plugins in /usr/local/lib/python2.5/site-packages/bzrlib/plugins
0.185 Plugin name __init__ already loaded
0.185 Plugin name __init__ already loaded
0.191 encoding stdout as sys.stdout encoding 'ISO-8859-1'
0.193 Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/share/bazaar/plugins/bookmarks/__init__.py", line 99, in run
    parser.write(file(config._get_filename(), 'wb'))
IOError: [Errno 2] No such file or directory: '/home/test/.bazaar/bazaar.conf'

0.193 return code 3

Lukáš Lalinský (luks)
Changed in bzr-bookmarks:
assignee: nobody → luks
importance: Undecided → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.