bzr add .bzr/
Martin Pool
mbp at canonical.com
Mon Feb 12 23:08:11 GMT 2007
On 12 Feb 2007, Alexander Belchenko <bialix at ukr.net> wrote:
> Matthias Rahlf пишет:
> > Hi,
> >
> > $ bzr add .bzr/
> > bzr: ERROR: Cannot operate on <bzrlib.add.FastPath object at 0xb75826ec>
> > because it is a control file
> >
> > It seems, FastPath is missing a __str__() method.
> >
> > I'm not familiar with the development process. Should I file a bug
> > report or is there a friendly developer who would adopt my patch?
Thanks for reporting it.
> Our development process use TDD, so you need also write the unit test
> for this bug.
> I think blackbox test will be good enough.
>
> You could find blackbox tests for 'add' command in bzrlib/tests/blackbox/test_add.py.
> Use some test as example, or ask for help.
Something like this:
BzrDir.create_branch_and_repo('a')
out, err = self.run_bzr('add', 'a/.bzr', retcode=3)
self.assertContainsRe(r'control file.*\.bzr')
--
Martin
More information about the bazaar
mailing list