Rev 1432: Fix tests. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk

Jelmer Vernooij jelmer at samba.org
Sat Jul 5 02:12:46 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/trunk

------------------------------------------------------------
revno: 1432
revision-id: jelmer at samba.org-20080705011240-y6ch3mixffw8szps
parent: jelmer at samba.org-20080704222025-gfanauxczz90uz6g
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Sat 2008-07-05 03:12:40 +0200
message:
  Fix tests.
modified:
  repository.py                  repository.py-20060306123302-1f8c5069b3fe0265
=== modified file 'repository.py'
--- a/repository.py	2008-07-04 21:49:44 +0000
+++ b/repository.py	2008-07-05 01:12:40 +0000
@@ -741,7 +741,10 @@
                 paths = it.next()[1]
                 del paths[bp]
                 if not changes.changes_path(paths, bp, False):
-                    (bp, _, rev, _) = it.next()
+                    try:
+                        (bp, _, rev, _) = it.next()
+                    except StopIteration:
+                        pass
                 
                 tags[nick] = self.generate_revision_id(rev, bp, mapping)
         finally:




More information about the bazaar-commits mailing list