/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 dir.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-20 21:05:19 UTC
  • mto: (0.200.1873 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180320210519-8o3pas233555hwdj
Fix WorkingTree.reset_state().

Show diffs side-by-side

added added

removed removed

Lines of Context:
599
599
        from .workingtree import GitWorkingTree
600
600
        index = self._git.open_index()
601
601
        wt = GitWorkingTree(self, repo, from_branch, index)
602
 
        wt.reset_state(
603
 
            [] if revision_id == _mod_revision.NULL_REVISION else [revision_id])
 
602
        wt.set_last_revision(revision_id)
 
603
        wt._build_checkout_with_index()
604
604
        return wt
605
605
 
606
606
    def _find_or_create_repository(self, force_new_repo=None):