~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2007-08-29 05:22:21 UTC
  • mto: This revision was merged to the branch mainline in revision 2765.
  • Revision ID: aaron.bentley@utoronto.ca-20070829052221-27rynnk5yws2619u
Detect irregularities with the pending-deletion directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
1845
1845
       self.limbo_dir = limbo_dir
1846
1846
 
1847
1847
 
 
1848
class ExistingPendingDeletion(BzrError):
 
1849
 
 
1850
    _fmt = """This tree contains left-over files from a failed operation.
 
1851
    Please examine %(pending_deletion)s to see if it contains any files you
 
1852
    wish to keep, and delete it when you are done."""
 
1853
 
 
1854
    def __init__(self, pending_deletion):
 
1855
       BzrError.__init__(self, pending_deletion=pending_deletion)
 
1856
 
 
1857
 
1848
1858
class ImmortalLimbo(BzrError):
1849
1859
 
1850
1860
    _fmt = """Unable to delete transform temporary directory $(limbo_dir)s.
1856
1866
       self.limbo_dir = limbo_dir
1857
1867
 
1858
1868
 
 
1869
class ImmortalPendingDeletion(BzrError):
 
1870
 
 
1871
    _fmt = """Unable to delete transform temporary directory
 
1872
    %(pending_deletion)s.  Please examine %(pending_deletions)s to see if it
 
1873
    contains any files you wish to keep, and delete it when you are done."""
 
1874
 
 
1875
    def __init__(self, pending_deletion):
 
1876
       BzrError.__init__(self, pending_deletion=pending_deletion)
 
1877
 
 
1878
 
1859
1879
class OutOfDateTree(BzrError):
1860
1880
 
1861
1881
    _fmt = "Working tree is out of date, please run 'bzr update'."