Mercurial > hg
annotate contrib/mercurial.spec @ 2735:07026da25ed8
hbisect.py: don't rely on __del__ to write the current state.
This is yet another page of the "Thou shalt not do too much inside
__del__ methods" book, in the "demandload and __del__ don't go well
together" chapter.
The bisect extension is broken in 0.9.1:
$ hg bisect init
$ hg bisect bad
Fatal Python error: Interpreter not initialized (version mismatch?)
Aborted
(yes, I tripled checked my instalation to make sure the problem is not
there)
It's been broken since revision fe1689273f84 moved the import of the
binascii module into a demandload.
(In details: the first time that "hg bisect bad" (or good) is called,
there are still no revisions saved in .hg/bisect/*, so bisect.__init__
doesn't call hg.bin on anything. So, when we reach __del__, the
binascii module still hasn't been imported and we get that "nice"
message above.)
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 28 Jul 2006 21:20:41 -0300 |
parents | e5c8e38b788f |
children | 1ef8ada4370f |
rev | line source |
---|---|
459 | 1 Summary: Mercurial -- a distributed SCM |
2 Name: mercurial | |
1891
e5c8e38b788f
New version/release in mercurial.spec, patchbomb is now in hgext.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1890
diff
changeset
|
3 Version: 0.8 |
e5c8e38b788f
New version/release in mercurial.spec, patchbomb is now in hgext.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1890
diff
changeset
|
4 Release: 0 |
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} | |
1890
d4545f1b8bfa
fix contrib/mercurial.spec for hgext
Xiaofeng Ling <xiaofeng.ling@intel.com>
parents:
1273
diff
changeset
|
13 %define hgext %{_libdir}/python%{pythonver}/site-packages/hgext |
563 | 14 |
459 | 15 %description |
16 Mercurial is a fast, lightweight source control management system designed | |
17 for efficient handling of very large distributed projects. | |
18 | |
19 %prep | |
20 rm -rf $RPM_BUILD_ROOT | |
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
21 %setup -q |
459 | 22 |
23 %build | |
24 python setup.py build | |
25 | |
26 %install | |
27 python setup.py install --root $RPM_BUILD_ROOT | |
28 | |
563 | 29 %clean |
30 rm -rf $RPM_BUILD_ROOT | |
459 | 31 |
563 | 32 %files |
33 %defattr(-,root,root,-) | |
1891
e5c8e38b788f
New version/release in mercurial.spec, patchbomb is now in hgext.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1890
diff
changeset
|
34 %doc doc/* *.cgi |
563 | 35 %dir %{pythonlib} |
1890
d4545f1b8bfa
fix contrib/mercurial.spec for hgext
Xiaofeng Ling <xiaofeng.ling@intel.com>
parents:
1273
diff
changeset
|
36 %dir %{hgext} |
563 | 37 %{_bindir}/hgmerge |
38 %{_bindir}/hg | |
39 %{pythonlib}/templates | |
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
40 %{pythonlib}/*.py* |
563 | 41 %{pythonlib}/*.so |
1890
d4545f1b8bfa
fix contrib/mercurial.spec for hgext
Xiaofeng Ling <xiaofeng.ling@intel.com>
parents:
1273
diff
changeset
|
42 %{hgext}/*.py* |