(self)
| 634 | self.branch_name = self.git_branch.branch_name |
| 635 | |
| 636 | def delete(self): |
| 637 | if self.is_current: |
| 638 | raise BranchIsCurrentError('Can\'t delete the current branch') |
| 639 | |
| 640 | self.git_branch.delete() |
| 641 | |
| 642 | # We also cleanup any stash left |
| 643 | s_id, _ = _stash(_stash_msg(self.branch_name)) |
| 644 | if s_id: |
| 645 | git.stash.drop(s_id) |
| 646 | |
| 647 | @property |
| 648 | def upstream(self): |
nothing calls this directly
no test coverage detected