-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
øÙOc @@ sü d Z d d l m Z d d l Z d d l m Z e e ƒ d ƒ d d l m Z m Z d d l
m Z d d l m
Z
d d l m Z d
e f d „ ƒ YZ d e f d
„ ƒ YZ d d „ Z d d „ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d S( s Copying of history from one branch to another.
The basic plan is that every branch knows the history of everything
that has merged into it. As the first step of a merge, pull, or
branch operation we copy history from the source into the destination
branch.
i ( t absolute_importN( t lazy_importsI
from bzrlib import (
tsort,
versionedfile,
vf_search,
)
( t errorst ui( t gettext( t
NULL_REVISION( t muttert RepoFetcherc B@ s; e Z d Z d e d d „ Z d „ Z d „ Z d „ Z RS( sµ Pull revisions and texts from one repository to another.
This should not be used directly, it's essential a object to encapsulate
the logic in InterRepository.fetch().
c C@ s” | | _ | | _ | j ƒ | _ | | _ | | _ | | _ | j j ƒ t d | j | j j | j | j j ƒ z | j
ƒ Wd | j j ƒ Xd S( sP Create a repo fetcher.
:param last_revision: If set, try to limit to the data this revision
references.
:param fetch_spec: A SearchResult specifying which revisions to fetch.
If set, this overrides last_revision.
:param find_ghosts: If True search the entire history for ghosts.
s3 Using fetch logic to copy between %s(%s) and %s(%s)N( t
to_repositoryt from_repositoryt _get_sinkt sinkt _last_revisiont _fetch_spect find_ghostst lock_readR t _formatt _RepoFetcher__fetcht unlock( t selfR R t
last_revisionR t
fetch_spec( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/fetch.pyt __init__5 s
c C@ s¯ d | _ i | _ t j j ƒ } t | _ | _ zl | j t d ƒ d d ƒ | j
ƒ } t d | ƒ | j ƒ rv d S| j t d ƒ d d ƒ | j
| ƒ Wd | j ƒ Xd S( sª Primary worker function.
This initialises all the needed variables, and then fetches the
requested revisions, finally clearing the progress bar.
i s Finding revisionsi s fetching: %sNs Fetching revisionsi ( t count_totalt file_ids_namesR t
ui_factoryt nested_progress_bart Falset show_pctt
show_countt updateR t _revids_to_fetchR t is_emptyt _fetch_everything_for_searcht finished( R t pbt
search_result( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/fetch.pyt __fetchQ s
c C@ so | j j j r= | j j j r= t j | j | j d ƒ ‚ n t j j ƒ } z| j d ƒ | j j
| j j ƒ } | j | ƒ } | j j } | j d ƒ | j j
| | g ƒ \ } } | r
| j d ƒ | j | ƒ } | j d ƒ | j j
| | | ƒ \ } } n | r&t d | f ƒ ‚ n | rBt d | f ƒ ‚ n | j d ƒ | j j ƒ Wd | j ƒ Xd S(
s. Fetch all data for the given set of revisions.s different rich-root supports Get stream sources Inserting streams Missing keyss Inserting missing keyss* second push failed to complete a fetch %r.s* second push failed to commit the fetch %r.s Finishing streamN( R R t rich_root_dataR R t IncompatibleRepositoriesR R R R t _get_sourcet
get_streamR t
insert_streamt get_stream_for_missing_keyst AssertionErrorR"