~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Martin Pool
  • Date: 2005-09-30 05:15:17 UTC
  • mto: (1185.14.2)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: mbp@sourcefrog.net-20050930051517-5e52c89049d4abfb
- add assertion to fetch

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
    count_texts -- number of file texts copied
86
86
    """
87
87
    def __init__(self, to_branch, from_branch, last_revision=None, pb=None):
 
88
        if to_branch == from_branch:
 
89
            raise Exception("can't fetch from a branch to itself")
88
90
        self.to_branch = to_branch
89
91
        self.to_weaves = to_branch.weave_store
90
92
        self.to_control = to_branch.control_weaves