/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to push.py

Cope with ghosts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Push implementation that simply prints message saying push is not supported."""
18
18
 
19
19
from bzrlib import (
 
20
    errors,
20
21
    ui,
21
22
    )
22
23
from bzrlib.repository import (
189
190
            def check_revid(revid):
190
191
                if revid == NULL_REVISION:
191
192
                    return True
192
 
                return (self.source_store._lookup_revision_sha1(revid) in target_store)
 
193
                try:
 
194
                    return (self.source_store._lookup_revision_sha1(revid) in target_store)
 
195
                except errors.NoSuchRevision:
 
196
                    # Ghost, can't dpush
 
197
                    return True
193
198
            todo = list(self.missing_revisions(stop_revisions, check_revid))
194
199
            pb = ui.ui_factory.nested_progress_bar()
195
200
            try: