Mercurial share expansion: how to parse?

I am using the Mercurial share extension in Mercurial 1.6.4, which comes with TortoiseHG 1.1.1 on Windows (XP 32 bit).

Additional information: https://www.mercurial-scm.org/wiki/ShareExtension

I use the share extension, works great in both directions. The main repo is located on the local hard drive, the common repo is located in a network share (Samba on AIX).

Now I want to remove the shared link (which should be known on both sides, as they update each other). How should I do it? I can not find anything on the Internet ... the words "share", "unshare" are not very googlable.

Any help is appreciated, kind, tijs

+3
source share
1

, / . share ( !) - , , - dirs.

unshare, .

:

hg init hg clone:

repoA
\-- .hg (repoA repository)

, . , 99,9% .

repoA  (the one you already had)
\-- .hg (repoA repository)

repoB  (the new clone)
\-- .hg (repo B repository)
    \-- hgrc (config file with a [paths] default=../repoA)

, hg share, - :

repoA  (the one you already had)
\-- .hg (repoA repository)

repoB  (the new shared repo)
\-- .hg (a symlink-like pointer to ../repoA/.hg)

, , . /, repoB , repoA - , DVC .

, "", repoB. repoB , repoA, - :

hg clone -U repoA newRepoB  # create a clone with no working dir
cp -a repoB/* newRepoB    # excludes all files including .hg (and other .* files)

TL; DR: share; .

+8

Source: https://habr.com/ru/post/1759891/


All Articles