Mercurial > hg > mercurial-crew-with-dirclash
annotate contrib/mercurial.spec @ 1598:14d1f1868bf6
cleanup of revlog.group when repository is local
revlog.group cached every chunk from the revlog, the behaviour was
needed to minimize the roundtrip with old-http.
We now cache the revlog data ~4MB at a time.
The memory used server side when pulling goes down to 35Mo maximum
whereas without the patch more than 160Mo was used when cloning the linux kernel
repository.
The time used by cloning is higher mainly because of the check in revlog.revision.
before
110.25user 20.90system 2:52.00elapsed 76%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+708707minor)pagefaults 0swaps
after
117.56user 18.86system 2:50.43elapsed 80%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+748366minor)pagefaults 0swaps
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 27 Dec 2005 13:09:49 -0600 |
parents | ab22af71386f |
children | d4545f1b8bfa |
rev | line source |
---|---|
459 | 1 Summary: Mercurial -- a distributed SCM |
2 Name: mercurial | |
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
3 Version: 0.7 |
459 | 4 Release: 1 |
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
5 License: GPL |
459 | 6 Group: Development/Tools |
7 Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz | |
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
8 URL: http://www.selenic.com/mercurial |
459 | 9 BuildRoot: /tmp/build.%{name}-%{version}-%{release} |
10 | |
563 | 11 %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
12 %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} | |
13 | |
459 | 14 %description |
15 Mercurial is a fast, lightweight source control management system designed | |
16 for efficient handling of very large distributed projects. | |
17 | |
18 %prep | |
19 rm -rf $RPM_BUILD_ROOT | |
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
20 %setup -q |
459 | 21 |
22 %build | |
23 python setup.py build | |
24 | |
25 %install | |
26 python setup.py install --root $RPM_BUILD_ROOT | |
27 | |
563 | 28 %clean |
29 rm -rf $RPM_BUILD_ROOT | |
459 | 30 |
563 | 31 %files |
32 %defattr(-,root,root,-) | |
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
33 %doc doc/* contrib/patchbomb *.cgi |
563 | 34 %dir %{pythonlib} |
35 %{_bindir}/hgmerge | |
36 %{_bindir}/hg | |
37 %{pythonlib}/templates | |
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
38 %{pythonlib}/*.py* |
563 | 39 %{pythonlib}/*.so |