BK-URL(1)

πŸ“¦ version 7.3.3, in alpine 3.24

πŸŽ€ NAME πŸŽ€

bk url βˆ’ methods of accessing BitKeeper repositories. This is from the BitKeeper User’s Manual, page bk url(none) β€” yes, section none, she’s mysterious and iconic like that. πŸ’…

πŸ’– DESCRIPTION πŸ’–

Okay so BitKeeper supports so many ways to access a repository. The selection of the access method is determined by how the repository is referenced. Each reference form is described below with an explanation of how the repository is accessed following each form. No cap.

In all cases below, if the pathname part of the URL starts with a / then the pathname is absolute, otherwise it is relative to the location of the bkd. If pathname is not set then the implied remote directory must be the root of a repository. See EXAMPLES below. 🫢

✨ ACCESS METHODS ✨

🏠 LOCAL

  • pathname β€” access is all local, through the local file system.
  • file://pathname β€” access is all local, through the local file system.

πŸ“‘ RSH

  • rsh://host/pathname β€” uses rsh to access host and starts in the user’s home directory.
  • rsh://user@host/pathname β€” uses rsh to access host and starts in the user’s home directory.

πŸ” SSH

  • host:pathname and user@host:pathname β€” uses ssh (by default) to access host and starts in the user’s home directory. If $BK_RSH is set, then that is used to talk to the host (allows for proxying). If no ssh is found then falls back to rsh.
  • ssh://host/pathname, ssh://host:port/pathname, ssh://user@host/pathname, and ssh://user@host:port/pathname β€” uses ssh to access host and starts in the user’s home directory.
  • bk://user@host/pathname β€” this is a deprecated form of ssh that only worked with a bkd run as a login shell. Connecting to a bkd running as a login shell is still supported. Please use the ssh:// URL form. πŸ™

πŸ›°οΈ BKD

  • bk://host/pathname β€” connects to an existing bkd on the default bkd port and starts in the directory where the long lived bkd was initially started.
  • bk://host:port/pathname β€” connects to an existing bkd on the specified port and starts in the directory where the long lived bkd was initially started.

🌐 HTTP

  • http://host/pathname β€” connects to an existing bkd using the HTTP port and transfer protocol and starts in the directory where the long lived bkd was initially started.
  • http://host:port/pathname β€” connects to the specified port using the HTTP transfer protocol and starts in the directory where the long lived bkd was initially started.

🧚 PROXIES 🧚

BitKeeper supports most HTTP proxies. Information about proxies needs to be passed to BitKeeper in the environment. ✨

The following are the environmental variables are available for use:

http_proxy=http://host:port
http_proxy=http://[user:pass@]host:port/
no_proxy=comma,separated,list,of,hosts,to,not,proxy

SOCKS_HOST=host_name
SOCKS_PORT=port_number
SOCKS_SERVER=host:port
⚠️ Note: if SOCKS_HOST is set, SOCK_PORT must also be set. If you are not sure if you should set environment variables, please consult your system administrator. (Yes, the original really says SOCK_PORT there β€” read it twice, bestie.)

On Windows, BitKeeper will also read Internet Explorer’s proxy information from the registry. So in most cases if Internet Explorer can browse the web then BitKeeper will work as well. πŸͺŸ

🌈 EXAMPLES 🌈

To clone old to new:

bk clone old new

To clone from a repository named old on a host named host using SSH:

bk clone ssh://host/old new

To clone from a repository named old on a host named host using rsh:

bk clone rsh://host/old new

To clone from a repository named /home/bk/mysql on a host named host using ssh (note there are 2 slashes before β€œhome”):

bk clone ssh://host//home/bk/mysql new

Suppose that you had a number of repositories in /home/bk and you wanted to make them available via the bkd protocol. On the server you would run:

cd /home/bk
bk bkd

and on the client you would run this to get /home/bk/mysql:

bk clone bk://server/mysql

πŸ‘€ SEE ALSO πŸ‘€

  • bk‐bkd

πŸ—‚οΈ CATEGORY πŸ—‚οΈ

  • Repository
  • Overview

okay that’s the whole page, bestie πŸ’– footer check: BitKeeper Inc, 1E1, and bk url(none) β€” periodt.

πŸ“¦ where this page comes from
  • alpine 3.24: bitkeeper-doc 7.3.3-r1 Β· Apache-2.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms