Error: bzr add

David Clymer david at hrcsb.org
Wed Apr 20 20:38:38 BST 2005


I attempted to add a file without first adding its parent directory with
the results below. I'm fairly new to VCS, so there may be good reason
not to do this, but I would think it would be handy for bzr to take:

bzr add <path>

where the path contains nodes not already known to bzr, as an implicit 
request to add all those nodes along this path as well as the file
itself.

anyway, that's just this bazaar/VCS newb's perspective. the errors are
below.

-davidc


[root at mail scripts]# cd filters
[root at mail filters]# ls
attachments
[root at mail filters]# bzr add attachments
bzr: exception:
(see $HOME/.bzr.log for debug information)


------------------------------------------------------------
bzr invoked at Wed 2005-04-20 18:59:22 +0000
  version: 0.0.3
  by root <root at mail.mainst.hrcsb.org> on mail.mainst.hrcsb.org
  arguments: ['/usr/local/bin/bzr', 'add', 'attachments']
  working dir: /etc/mail/scripts/filters
  platform: linux2
  python: (2, 3, 5, 'final', 0)
loaded inventory of 6 items in 0.002177
loaded inventory of 6 items in 0.000856
smart add of 'attachments'
lookup path ['filters', 'attachments']
lookup path ['filters']
bzr: exception:
(see $HOME/.bzr.log for debug information)
Traceback (most recent call last):
  File "/usr/local/share/bzr-0.0.3/bzrlib/commands.py", line 992, in
main
    ret = run_bzr(argv)
  File "/usr/local/share/bzr-0.0.3/bzrlib/commands.py", line 978, in
run_bzr
    return cmd_handler(**cmdargs) or 0
  File "/usr/local/share/bzr-0.0.3/bzrlib/commands.py", line 175, in
cmd_add
    bzrlib.add.smart_add(file_list, verbose)
  File "/usr/local/share/bzr-0.0.3/bzrlib/add.py", line 61, in smart_add
    inv.add_path(rf, kind=kind, file_id=file_id)
  File "/usr/local/share/bzr-0.0.3/bzrlib/inventory.py", line 440, in
add_path
    assert parent_id != None
AssertionError
finished, 0.090u/0.000s cpu, 0.000u/0.000s cum, 0.010 elapsed



--
The function of the expert is not to be more right than other people, 
but to be wrong for more sophisticated reasons.
                 -- Dr. David Butler, British psephologist





More information about the bazaar mailing list