def init_replication(conn: Connection, base_url: str,
socket_timeout: int = 60) -> None:
""" Set up replication for the server at the given base URL.
def init_replication(conn: Connection, base_url: str,
socket_timeout: int = 60) -> None:
""" Set up replication for the server at the given base URL.
# Read updates into file.
with _make_replication_server(options['base_url'], socket_timeout) as repl:
outhandler = WriteHandler(str(options['import_file']))
# Read updates into file.
with _make_replication_server(options['base_url'], socket_timeout) as repl:
outhandler = WriteHandler(str(options['import_file']))
- # tyoing: work around typing bug in pyosmium 4.0
- endseq = repl.apply_diffs(outhandler, startseq + 1, # type: ignore[arg-type]
+ endseq = repl.apply_diffs(outhandler, startseq + 1,
if self.session is not None:
return self.session.get(url.get_full_url(),
if self.session is not None:
return self.session.get(url.get_full_url(),