Mercurial > kallithea
view docs/usage/subrepos.rst @ 4128:bbbb013a0e94 rhodecode-2.2.5-gpl
Import some of the files from Select2 3.5.0 Javascript system.
RhodeCode 2.2.5 used a version of Select2. Herein, we bring into
Kallithea only a few files directly from Select2 3.5.0 (6ef7155) upstream,
using the commands indicated below:
(cd /tmp; \
git clone https://github.com/ivaynberg/select2.git; \
cd select2; \
git checkout 3.5.0 \
)
mkdir rhodecode/public/js/select2
cp -pa /tmp/select2/select2.{js,css,png} rhodecode/public/js/select2/
cp -pa /tmp/select2/select2x2.png rhodecode/public/js/select2/
cp -pa /tmp/select2/select2-spinner.gif rhodecode/public/js/select2/
hg add rhodecode/public/js/select2/
author | Bradley M. Kuhn <bkuhn@sfconservancy.org> |
---|---|
date | Fri, 16 May 2014 18:07:12 -0400 |
parents | 8b8edfc25856 |
children | e73a69cb98dc |
line wrap: on
line source
.. _subrepos: ============================================= working with RhodeCode and mercurial subrepos ============================================= example usage of Subrepos with RhodeCode:: ## init a simple repo hg init repo1 cd repo1 echo "file1" > file1 hg add file1 hg ci --message "initial file 1" #clone subrepo we want to add hg clone http://rc.local/subrepo ## use path like url to existing repo in RhodeCode echo "subrepo = http://rc.local/subrepo" > .hgsub hg add .hgsub hg ci --message "added remote subrepo" In file list of repo1 you will see a connected subrepo at revision it was during cloning. Clicking in subrepos link should send you to proper repository in RhodeCode cloning repo1 will also clone attached subrepository. Next we can edit the subrepo data, and push back to RhodeCode. This will update both of repositories. see http://mercurial.aragost.com/kick-start/en/subrepositories/ for more information about subrepositories