Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; '16,': 0.03; 'skip:[ 20': 0.04; 'cpython': 0.05; 'repository': 0.05; 'bytes,': 0.09; 'git': 0.09; 'mercurial': 0.09; 'cc:addr:python-list': 0.11; 'comparison.': 0.16; 'gpg': 0.16; 'guessing': 0.16; 'hmm.': 0.16; 'sane': 0.16; 'wrote:': 0.18; 'commit': 0.19; 'starts': 0.20; 'seems': 0.21; '(in': 0.22; 'cc:addr:python.org': 0.22; 'bytes': 0.24; 'config': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'are.': 0.31; 'lot.': 0.31; 'such.': 0.31; 'file': 0.32; 'problem': 0.35; 'created': 0.35; 'skip:u 20': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'skip:~ 10': 0.36; 'next': 0.36; 'responsible': 0.36; 'url:org': 0.36; 'files': 0.38; 'rather': 0.38; 'does': 0.39; 'according': 0.40; 'remove': 0.60; 'new': 0.61; 'from:charset:utf-8': 0.61; 'making': 0.63; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'due': 0.66; 'sample': 0.67; 'bulk': 0.74; '(i\xe2\x80\x99m': 0.84; 'let\xe2\x80\x99s': 0.84; 'maths': 0.84; 'promptly': 0.84; 'subject:Control': 0.84; 'wrong!': 0.84; 'url:tk': 0.95; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=p2yQ2SFxWPQH/ir/enn1SLqw7pHpBz5RHYt0nLxHXqU=; b=D619VcmnRcutJcn1kdBsRdj3N58rEvY0QnGm+Pq+O5Q9tcLgM5fccP74glG8hVvGY5 7Yeq49l5q8go5nMTbEiLffScGDzBlnK7Mz9lpLldGwIlsirav0m+F911wC0JM9AX0Q3S pO8WnVHYrpjbZF+j2jV0LQ9/v5QMy04vQEW1olWslLsUP0x8KKlbME3Yt3VoFobrbLtT y4Ud5EEw0ct5DS2wME4KVkVndXtgBUWL2IpmjoM2iIgD7q13+XFRWK6UankIoQYD+ZTa agLS7X5ZTfS4SHNMwGqCvVsJczOo8AG6M/PU5p642C9FXc7Z6Kk62Y1FiB4S4VQwBpVO ikgw== X-Received: by 10.50.107.6 with SMTP id gy6mr2854381igb.57.1371389425435; Sun, 16 Jun 2013 06:30:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <98c13a55-dbf2-46a7-a2aa-8c5f052ff375@googlegroups.com> <2644d0de-9a81-41aa-b27a-cb4535964b58@googlegroups.com> <51BB8338.50006@davea.name> From: =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= Date: Sun, 16 Jun 2013 15:30:05 +0200 Subject: Re: Version Control Software To: Chris Angelico Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 44 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371389433 news.xs4all.nl 15989 [2001:888:2000:d::a6]:35836 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48449 On Sun, Jun 16, 2013 at 1:14 AM, Chris Angelico wrote: > Hmm. ~/cpython/.hg is 200MB+, but ~/pike/.git is only 86MB. Does > Mercurial compress its content? A tar.gz of each comes down, but only > to ~170MB and ~75MB respectively, so I'm guessing the bulk of it is > already compressed. But 200MB for cpython seems like a lot. Next time, do a more fair comparison. I created an empty git and hg repository, and created a file promptly named =E2=80=9Cfile=E2=80=9D with DIGIT ONE (0x31; UTF-8/ASCII=E2=80=93enco= ded) and commited it with =E2=80=9Cc1=E2=80=9D as the message, then I turned it into =E2=80= =9C12=E2=80=9D and commited as =E2=80=9Cc2=E2=80=9D and did this one more time, making the file =E2=80= =9C123=E2=80=9D at commit named =E2=80=9Cc3=E2=80=9D. [kwpolska@kwpolska-lin .hg@default]% cat * */* */*/* 2>/dev/null | wc -c 1481 [kwpolska@kwpolska-lin .git@master]% cat * */* */*/* */*/*/* 2>/dev/null | = wc -c 16860 =E2=86=90 WRONG! There is just one problem with this: an empty git repository starts at 15216 bytes, due to some sample hooks. Let=E2=80=99s remove them and try again: [kwpolska@kwpolska-lin .git@master]% rm hooks/* [kwpolska@kwpolska-lin .git@master]% cat * */* */*/* */*/*/* */*/*/* 2>/dev/null | wc -c 2499 which is a much more sane number. This includes a config file (in the ini/configparser format) and such. According to my maths skils (or rather zsh=E2=80=99s skills), new commits are responsible for 1644 bytes in the git repo and 1391 bytes in the hg repo. (I=E2=80=99m using wc -c to count the bytes in all files there are. du is unaccurate with files smaller than 4096 bytes.) -- Kwpolska | GPG KEY: 5EAAEA16 stop html mail | always bottom-post http://asciiribbon.org | http://caliburn.nl/topposting.html