Rev 2117: Handle incomplete full-history iterations. in http://people.samba.org/bzr/jelmer/bzr-svn/0.5
Jelmer Vernooij
jelmer at samba.org
Sun Nov 30 23:41:29 GMT 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.5
------------------------------------------------------------
revno: 2117
revision-id: jelmer at samba.org-20081130234127-xdyy1l6z8feg5tka
parent: jelmer at samba.org-20081130233919-0vaer5b7un7hhs9c
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.5
timestamp: Mon 2008-12-01 00:41:27 +0100
message:
Handle incomplete full-history iterations.
modified:
revmeta.py revmeta.py-20080901215045-n8a6arqybs9ez5hl-1
=== modified file 'revmeta.py'
--- a/revmeta.py 2008-11-30 23:39:19 +0000
+++ b/revmeta.py 2008-11-30 23:41:27 +0000
@@ -692,7 +692,12 @@
return
def next(self):
- ret = self._iter.next()
+ try:
+ ret = self._iter.next()
+ except StopIteration:
+ if self.to_revnum > 0:
+ raise MetaHistoryIncomplete()
+ raise
self._actions.append(ret)
return ret
More information about the bazaar-commits
mailing list