~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

(GaryvdM) Make it possible to detect a BoundBranchOutOfDate from
        commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3174
3174
            raise errors.BzrCommandError("Commit refused because there are"
3175
3175
                              " unknown files in the working tree.")
3176
3176
        except errors.BoundBranchOutOfDate, e:
3177
 
            raise errors.BzrCommandError(str(e) + "\n"
3178
 
            'To commit to master branch, run update and then commit.\n'
3179
 
            'You can also pass --local to commit to continue working '
3180
 
            'disconnected.')
 
3177
            e.extra_help = ("\n"
 
3178
                'To commit to master branch, run update and then commit.\n'
 
3179
                'You can also pass --local to commit to continue working '
 
3180
                'disconnected.')
 
3181
            raise
3181
3182
 
3182
3183
 
3183
3184
class cmd_check(Command):