You can use the exit code of bzr missing URL
to decide whether you need to do bzr up
and rebuild. The exit code is 0 if there are no updates, 1 otherwise.
In bzr missing URL
you only need to specify URL
once, afterwards you can use the :parent
shortcut, or you could set parent_location
in .bzr/branch/branch.conf
and use :parent
always.