Rev 2950: Unbreak autopack. Doh. in http://people.ubuntu.com/~robertc/baz2.0/pack
Robert Collins
robertc at robertcollins.net
Mon Oct 29 04:00:24 GMT 2007
At http://people.ubuntu.com/~robertc/baz2.0/pack
------------------------------------------------------------
revno: 2950
revision-id:robertc at robertcollins.net-20071029040019-3x9as04a7s29motr
parent: robertc at robertcollins.net-20071028234731-17kxx1yqlzuw1rof
committer: Robert Collins <robertc at robertcollins.net>
branch nick: pack
timestamp: Mon 2007-10-29 15:00:19 +1100
message:
Unbreak autopack. Doh.
modified:
bzrlib/repofmt/pack_repo.py pack_repo.py-20070813041115-gjv5ma7ktfqwsjgn-1
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py 2007-10-28 19:02:05 +0000
+++ b/bzrlib/repofmt/pack_repo.py 2007-10-29 04:00:19 +0000
@@ -617,10 +617,12 @@
if self._new_pack is not None:
raise errors.BzrError('call to create_pack_from_packs while '
'another pack is being written.')
- if revision_ids is not None and len(revision_ids) == 0:
- # silly fetch request.
- return None
- revision_ids = frozenset(revision_ids)
+ if revision_ids is not None:
+ if len(revision_ids) == 0:
+ # silly fetch request.
+ return None
+ else:
+ revision_ids = frozenset(revision_ids)
new_pack = NewPack(self._upload_transport, self._index_transport,
self._pack_transport, upload_suffix=suffix)
# buffer data - we won't be reading-back during the pack creation and
More information about the bazaar-commits
mailing list