862
862
# We therefore need a try/except here and not just 'if stacked:'
864
864
note('Created new stacked branch referring to %s.' %
866
866
except (errors.NotStacked, errors.UnstackableBranchFormat,
867
867
errors.UnstackableRepositoryFormat), e:
868
868
note('Branched %d revision(s).' % branch.revno())