~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

bzr rm removes the working file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1633
1633
    def __init__(self, from_path, to_path, extra=None):
1634
1634
        BzrMoveFailedError.__init__(self, from_path, to_path, extra)
1635
1635
 
 
1636
class BzrRemoveChangedFilesError(BzrError):
 
1637
    """Used when user is trying to remove changed files."""
 
1638
 
 
1639
    _fmt = ("Can't remove changed or unknown files:\n%(changes_as_text)s"
 
1640
        "Use --keep to not delete them, or --force to delete them regardless.")
 
1641
 
 
1642
    def __init__(self, tree_delta):
 
1643
        BzrError.__init__(self)
 
1644
        self.changes_as_text = tree_delta.get_changes_as_text()
 
1645
        #self.paths_as_string = '\n'.join(changed_files)
 
1646
        #self.paths_as_string = '\n'.join([quotefn(p) for p in changed_files])
 
1647
 
1636
1648
 
1637
1649
class BzrBadParameterNotString(BzrBadParameter):
1638
1650