They say that Mercurial "hg clone" is very cheap ... but is it 400 MB on my hard drive? (on Mac OS X Snow Leopard)

I have a project that I cloned over the network to a Mac hard drive (OS X Snow Leopard).

The project is about 1 GB of hard disk space

du -s
2073848 .

so when i hg clone proj proj2

then at I

MacBook-Pro ~/development $ du -s proj
2073848 proj

MacBook-Pro ~/development $ du -s proj2
894840  proj2

MacBook-Pro ~/development $ du -s
2397928 .

so the clone doesn’t seem so cheap ... probably about 400 MB ... is that so? In addition, the entire folder grew by about 200 MB, which is not the total sum of proj and proj2 by the way ... are there any links, and some are not links, why does the overlap not count twice?

+3
source share
3 answers

, Mercurial , . , , , - .hg.

, hardlinks, cp -al REPO REPOCLONE , , , . :

, hardlinks ,     ( , , ). , ,      , . -pull,     hardlinking.

hardlinks

$ cp -al REPO REPOCLONE

, . (      , ), (Emacs      Linux Kernel ). , ,      .hg, mq.

+3

- , . Cloning , - , - , ? , , 1 ~ 200 , , Mercurial , , .

, Mercurial ( DVCS/VCS). , . . , , , . , , -, , DVCS, .

, FTP // .

romkyns: . , , . , Mercurial VCS .

Mercurial , . , , , .. - , , . VCS , - .

, mozilla-central, , , 5 , 20 , ( ) 10 . 35 , Mozilla, . ~ 500 000 ~ 62 000 15% , , .

, - . , . Mercurial Web Interface , (bz2, zip, gz) . , . Mozilla, .

+3

When you can get 1 TB of storage for £ 60, 400 MB is cheap (~ 2p).

-1
source

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


All Articles