~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-20 21:01:40 UTC
  • mfrom: (5718.7.15 dprh)
  • Revision ID: pqm@pqm.ubuntu.com-20110420210140-1akzbrzuwftl390r
(Jelmer) Deprecate Branch.set_revision_history(). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1264
1264
        when their last revision is set.
1265
1265
        """
1266
1266
        if _mod_revision.is_null(new_revision):
1267
 
            self.branch.set_revision_history([])
 
1267
            self.branch.set_last_revision_info(0, new_revision)
1268
1268
            return False
1269
1269
        try:
1270
1270
            self.branch.generate_revision_history(new_revision)
1271
1271
        except errors.NoSuchRevision:
1272
1272
            # not present in the repo - dont try to set it deeper than the tip
1273
 
            self.branch.set_revision_history([new_revision])
 
1273
            self.branch._set_revision_history([new_revision])
1274
1274
        return True
1275
1275
 
1276
1276
    @needs_tree_write_lock