Patchwork D220: rpms: add chg

login
register
mail settings
Submitter phabricator
Date Aug. 3, 2017, 6:57 a.m.
Message ID <differential-rev-PHID-DREV-72t3kvetzazcrr5vaamv-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/22656/
State Superseded
Headers show

Comments

phabricator - Aug. 3, 2017, 6:57 a.m.
Mathiasdm created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I'm not sure if there's a reason chg is not added by default.
  If not, I would like to propose adding in this patch.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D220

AFFECTED FILES
  contrib/mercurial.spec

CHANGE DETAILS




To: Mathiasdm, #hg-reviewers
Cc: mercurial-devel
phabricator - Aug. 3, 2017, 2:42 p.m.
yuja accepted this revision.
yuja added a comment.
This revision is now accepted and ready to land.


  Seems fine, queued, thanks.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D220

To: Mathiasdm, #hg-reviewers, yuja
Cc: yuja, mercurial-devel

Patch

diff --git a/contrib/mercurial.spec b/contrib/mercurial.spec
--- a/contrib/mercurial.spec
+++ b/contrib/mercurial.spec
@@ -83,6 +83,7 @@ 
 %endif
 
 make all
+make -C contrib/chg
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -111,6 +112,7 @@ 
 
 %endif
 
+install -m 755 contrib/chg/chg $RPM_BUILD_ROOT%{_bindir}/
 install -m 755 contrib/hgk $RPM_BUILD_ROOT%{_bindir}/
 install -m 755 contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}/
 
@@ -143,6 +145,7 @@ 
 %{_datadir}/emacs/site-lisp/mercurial.el
 %{_datadir}/emacs/site-lisp/mq.el
 %{_bindir}/hg
+%{_bindir}/chg
 %{_bindir}/hgk
 %{_bindir}/hg-ssh
 %dir %{_sysconfdir}/bash_completion.d/