~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2005-11-12 21:42:10 UTC
  • mto: (1587.1.6 bound-branches)
  • mto: This revision was merged to the branch mainline in revision 1590.
  • Revision ID: john@arbash-meinel.com-20051112214210-6afc243ae098682f
Added a test for the unbind command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1151
1151
        # Both branches should now be at the same revision
1152
1152
        self.set_bound_location(other.base)
1153
1153
 
 
1154
    @needs_write_lock
 
1155
    def unbind(self):
 
1156
        """If bound, unbind"""
 
1157
        bound_path = self._rel_controlfilename('bound')
 
1158
        try:
 
1159
            self._transport.delete(bound_path)
 
1160
        except NoSuchFile:
 
1161
            pass
 
1162
 
1154
1163
 
1155
1164
class ScratchBranch(_Branch):
1156
1165
    """Special test class: a branch that cleans up after itself.