Rev 418: Use get_revid_for_revno properly. in http://bazaar.launchpad.net/~jameinel/loggerhead/history_db
John Arbash Meinel
john at arbash-meinel.com
Tue May 4 05:26:57 BST 2010
At http://bazaar.launchpad.net/~jameinel/loggerhead/history_db
------------------------------------------------------------
revno: 418
revision-id: john at arbash-meinel.com-20100504042640-ta9l4ndobw5kr7pv
parent: john at arbash-meinel.com-20100503203439-hmztxy1pa9nw6d7s
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: history_db
timestamp: Mon 2010-05-03 23:26:40 -0500
message:
Use get_revid_for_revno properly.
At one point it was a multi api, but I switched it back to a single. Use it as such.
-------------- next part --------------
=== modified file 'loggerhead/history.py'
--- a/loggerhead/history.py 2010-05-03 20:34:39 +0000
+++ b/loggerhead/history.py 2010-05-04 04:26:40 +0000
@@ -366,7 +366,7 @@
revnos = self._querier.get_revision_ids([dotted_revno])
revnos = dict([('.'.join(map(str, drn)), ri)
for drn, ri in revnos.iteritems()])
- for revno_str, revid in revnos:
+ for revno_str, revid in revnos.iteritems():
self._revno_revid_cache.set(revid, revno_str)
return revnos[revno_str]
@@ -448,7 +448,7 @@
return self.last_revid
try:
if self.revno_re.match(revid):
- val = self.get_revid_for_revno([revid])[revid]
+ val = self.get_revid_for_revno(revid)
# XXX: Do this more cleanly
if val is None:
raise KeyError
More information about the bazaar-commits
mailing list