Comment 2 for bug 932473

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 932473] [NEW] externals-add does not work with colocated branches

Yaroslav Sokolov пишет:
> Public bug reported:
>
> after trying to execute
> bzr externals-add
> in a colocated branch the following error appears:
> bzr: ERROR: No such file: u'<project root>/.bzrignore'
>
> Appears in bzr 2.4.2 for Windows. Tested Externals versions: 1.3.3,
> 1.3.2
>
> PS: manually creating empty .bzrignore does not fix the problem - the
> same problem with .bzrmeta/externals and .bzrmeta/externals-snapshot
>
> PPS: manually creating all the missing files: .bzrignore,
> .bzrmeta/externals, .bzrmeta/externals-snapshot makes no sense - these
> files are not updated by the plugin.

Actually those files ARE updated by the plugin, because externals-add
wants to record what it adds, and ignore.

I think manually creating all those files should be a possible
workaround, but the bug is still there: externals-add should cope with
the absence of the required files and create them when needed.

Also, looking at your reproduction steps it's not clear for me why do
you think that colocated branch is special there. As I can see you
just have the branch without above mentioned service files, and you
should get the same error with your trunk in your example.

Also, please, attach to the bug report part of your .bzr.log
corresponding to this error.