Merge lp:~gz/bzr-git/trivial_lru_cache_add into lp:bzr-git

Proposed by Martin Packman
Status: Merged
Merged at revision: 1420
Proposed branch: lp:~gz/bzr-git/trivial_lru_cache_add
Merge into: lp:bzr-git
Diff against target: 12 lines (+1/-1)
1 file modified
object_store.py (+1/-1)
To merge this branch: bzr merge lp:~gz/bzr-git/trivial_lru_cache_add
Reviewer Review Type Date Requested Status
bzr-git developers Pending
Review via email: mp+80616@code.launchpad.net

Description of the change

The deprecation of the add method of bzrlib.lru_cache classes has landed on bzr.dev. This branch just changes the spelling in bzr-git to use plain __setitem__ syntax instead. See also the bzr merge proposal:

<https://code.launchpad.net/~gz/bzr/lru_cache_refactor/+merge/79439>

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Thu, 2011-10-27 at 20:16 +0000, Martin Packman wrote:
> Martin Packman has proposed merging lp:~gz/bzr-git/trivial_lru_cache_add into lp:bzr-git.
>
> Requested reviews:
> bzr-git developers (bzr-git)
>
> For more details, see:
> https://code.launchpad.net/~gz/bzr-git/trivial_lru_cache_add/+merge/80616
>
> The deprecation of the add method of bzrlib.lru_cache classes has landed on bzr.dev. This branch just changes the spelling in bzr-git to use plain __setitem__ syntax instead. See also the bzr merge proposal:
I'm trying to remember, was __setitem__ also available in older versions
of bzr?

Cheers,

Jelmer

Revision history for this message
Martin Packman (gz) wrote :

> I'm trying to remember, was __setitem__ also available in older versions
> of bzr?

Yup, it was part of the initial implementation of the module in r2996.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Fri, 2011-10-28 at 08:17 +0000, Martin Packman wrote:
> > I'm trying to remember, was __setitem__ also available in older versions
> > of bzr?
>
> Yup, it was part of the initial implementation of the module in r2996.
Great, thanks for confirming.

Merged!

Cheers,

Jelmer

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'object_store.py'
2--- object_store.py 2011-09-12 23:37:55 +0000
3+++ object_store.py 2011-10-27 20:15:28 +0000
4@@ -112,7 +112,7 @@
5 return list(self.iter_revision_trees(revids))
6
7 def add(self, tree):
8- self._cache.add(tree.get_revision_id(), tree)
9+ self._cache[tree.get_revision_id()] = tree
10
11
12 def _find_missing_bzr_revids(graph, want, have):

Subscribers

People subscribed via source and target branches

to all changes: