Mercurial > hg > mercurial-crew-with-dirclash
annotate contrib/mercurial.spec @ 612:9cd745437269
On Sat, Jul 02, 2005 at 02:11:34PM -0700, Matt Mackall wrote:
# HG changeset patch
# User Alecs King <alecsk@gmail.com>
On Sat, Jul 02, 2005 at 02:11:34PM -0700, Matt Mackall wrote:
> On Sun, Jul 03, 2005 at 12:49:27AM +0800, Alecs King wrote:
> > Hg is really very nice. The only feature i miss from git is the
> > whatchanged -p, which shows a diff along with a changeset.
> > python before, i just dig into the mercurial/commands.py a while and
> > see what diff(), dodiff(), export(), show_changeset(), log() would
> > normally do. There might be one thing or two missed or wrong. But here
> > it is: a '-d' option to 'hg log' showing the diff info. You can use 'hg
> > log -d' to show the whole history with the diff or 'hg log -d <file>' to
> > show that info of a particular file. And also works with the '-r'
> > option.
>
> Let's use -p. We're going to be combining the global and per command
> switch namespace shortly and the global -p will disappear.
Okay. '-d' changed to '-p'. Just like 'whatchanged -p', now we have
'hg log -p'.
> Also, the argument list for show_changeset is getting a bit unwieldy.
This time i remain show_changeset untouched at all. Only changed some
bits of log().
author | Alecs King <alecsk@gmail.com> |
---|---|
date | Mon, 04 Jul 2005 12:15:44 -0800 |
parents | 42a6a41ab76b |
children | ab22af71386f |
rev | line source |
---|---|
459 | 1 Summary: Mercurial -- a distributed SCM |
2 Name: mercurial | |
3 Version: 0.6 | |
4 Release: 1 | |
5 Copyright: GPL | |
6 Group: Development/Tools | |
7 Distribution: RedHat | |
8 Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz | |
9 Packager: Arun Sharma <arun@sharma-home.net> | |
10 Prefix: /usr | |
11 BuildRoot: /tmp/build.%{name}-%{version}-%{release} | |
12 | |
563 | 13 %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
14 %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} | |
15 | |
459 | 16 %description |
17 | |
18 Mercurial is a fast, lightweight source control management system designed | |
19 for efficient handling of very large distributed projects. | |
20 | |
21 %prep | |
22 | |
23 rm -rf $RPM_BUILD_ROOT | |
24 | |
25 %setup -q -n %{name}-%{version} | |
26 | |
27 %build | |
28 | |
29 python setup.py build | |
30 | |
31 %install | |
32 | |
33 python setup.py install --root $RPM_BUILD_ROOT | |
34 | |
563 | 35 %clean |
36 rm -rf $RPM_BUILD_ROOT | |
459 | 37 |
563 | 38 %files |
39 %defattr(-,root,root,-) | |
459 | 40 %doc doc |
563 | 41 %dir %{pythonlib} |
42 %{_bindir}/hgmerge | |
43 %{_bindir}/hg | |
44 %{pythonlib}/templates | |
45 %{pythonlib}/*.pyc | |
46 %{pythonlib}/*.py | |
47 %{pythonlib}/*.so |