~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Fix an empty commit to raise the right exception.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1702
1702
        except PointlessCommit:
1703
1703
            # FIXME: This should really happen before the file is read in;
1704
1704
            # perhaps prepare the commit; get the message; then actually commit
1705
 
            raise BzrCommandError("no changes to commit",
1706
 
                                  ["use --unchanged to commit anyhow"])
 
1705
            raise BzrCommandError("no changes to commit."
 
1706
                                  " use --unchanged to commit anyhow")
1707
1707
        except ConflictsInTree:
1708
1708
            raise BzrCommandError("Conflicts detected in working tree.  "
1709
1709
                'Use "bzr conflicts" to list, "bzr resolve FILE" to resolve.')