~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-08-23 17:41:34 UTC
  • mfrom: (3644.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20080823174134-lx67nymraun1onby
(Jelmer) Remove deprecated Branch.abspath and unimplemented
        Branch.rename_one and Branch.move.

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
        """
232
232
        self.control_files.dont_leave_in_place()
233
233
 
234
 
    @deprecated_method(deprecated_in((0, 16, 0)))
235
 
    def abspath(self, name):
236
 
        """Return absolute filename for something in the branch
237
 
        
238
 
        XXX: Robert Collins 20051017 what is this used for? why is it a branch
239
 
        method and not a tree method.
240
 
        """
241
 
        raise NotImplementedError(self.abspath)
242
 
 
243
234
    def bind(self, other):
244
235
        """Bind the local branch the other branch.
245
236
 
576
567
        """Return `Tree` object for last revision."""
577
568
        return self.repository.revision_tree(self.last_revision())
578
569
 
579
 
    def rename_one(self, from_rel, to_rel):
580
 
        """Rename one file.
581
 
 
582
 
        This can change the directory or the filename or both.
583
 
        """
584
 
        raise NotImplementedError(self.rename_one)
585
 
 
586
 
    def move(self, from_paths, to_name):
587
 
        """Rename files.
588
 
 
589
 
        to_name must exist as a versioned directory.
590
 
 
591
 
        If to_name exists and is a directory, the files are moved into
592
 
        it, keeping their old names.  If it is a directory, 
593
 
 
594
 
        Note that to_name is only the last component of the new name;
595
 
        this doesn't change the directory.
596
 
 
597
 
        This returns a list of (from_path, to_path) pairs for each
598
 
        entry that is moved.
599
 
        """
600
 
        raise NotImplementedError(self.move)
601
 
 
602
570
    def get_parent(self):
603
571
        """Return the parent location of the branch.
604
572
 
1520
1488
 
1521
1489
    base = property(_get_base, doc="The URL for the root of this branch.")
1522
1490
 
1523
 
    @deprecated_method(deprecated_in((0, 16, 0)))
1524
 
    def abspath(self, name):
1525
 
        """See Branch.abspath."""
1526
 
        return self._transport.abspath(name)
1527
 
 
1528
1491
    def is_locked(self):
1529
1492
        return self.control_files.is_locked()
1530
1493