/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Robert Collins
  • Date: 2009-02-25 05:06:51 UTC
  • mto: This revision was merged to the branch mainline in revision 4047.
  • Revision ID: robertc@robertcollins.net-20090225050651-q8g8zdj5esyn2yel
Remove a wasted round trip determining the revno and revid of a newly created branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1572
1572
        remote_repo = RemoteRepository(repo_bzrdir, repo_format)
1573
1573
        remote_branch = RemoteBranch(a_bzrdir, remote_repo,
1574
1574
            format=format, setup_stacking=False)
 
1575
        # XXX: We know this is a new branch, so it must have revno 0, revid
 
1576
        # NULL_REVISION. Creating the branch locked would make this be unable
 
1577
        # to be wrong; here its simply very unlikely to be wrong. RBC 20090225
 
1578
        remote_branch._last_revision_info_cache = 0, NULL_REVISION
1575
1579
        return remote_branch
1576
1580
 
1577
1581
    def supports_tags(self):