In the text and bash commands herein, change version numbers and changesets as current ones at time of repo update. apmuthu
Install Mercurial
In Debian, install Mercurial thus:
apt-get install mercurial
Make a folder for the repo:
mkdir -p /var/lib/vz/Repos/Mercurial/FrontAc
Clone FA Repos
To clone the stable FA default branch (v2.3.x):
cd /var/lib/vz/Repos/Mercurial/FrontAc hg clone http://frontaccounting.hg.sourceforge.net:8000/hgroot/frontaccounting/default cd default tar -czf ../FrontAc_default_Mer_`hg log -l 1 | grep "changeset: " | cut -d":" -f2 | sed -e 's/^[ \t]*//'`_`date +%Y-%m-%d`.tar.gz . --exclude=.hg* cd ..
Mercurial Output:
destination directory: default requesting all changes adding changesets adding manifests adding file changes added 3064 changesets with 12896 changes to 690 files (+1 heads) updating working directory 629 files updated, 0 files merged, 0 files removed, 0 files unresolved
To clone the stable FA unstable branch (v2.4.x):
cd /var/lib/vz/Repos/Mercurial/FrontAc hg clone http://frontaccounting.hg.sourceforge.net:8000/hgroot/frontaccounting/unstable cd unstable hg update -C unstable tar -czf ../FrontAc_unstable_Mer_`hg log -l 1 | grep "changeset: " | cut -d":" -f2 | sed -e 's/^[ \t]*//'`_`date +%Y-%m-%d`.tar.gz . --exclude=.hg* cd ..
Mercurial Output:
destination directory: unstable requesting all changes adding changesets adding manifests adding file changes added 3064 changesets with 12896 changes to 690 files (+1 heads) updating working directory 629 files updated, 0 files merged, 0 files removed, 0 files unresolved # cd unstable # hg update -C unstable 401 files updated, 0 files merged, 0 files removed, 0 files unresolved
Update Local FA Repos
Locally update the stable default branch (v2.3.x):
cd /var/lib/vz/Repos/Mercurial/FrontAc/default hg pull -u tar -czf ../FrontAc_default_Mer_`hg log -l 1 | grep "changeset: " | cut -d":" -f2 | sed -e 's/^[ \t]*//'`_`date +%Y-%m-%d`.tar.gz . --exclude=.hg* cd ..
Mercurial Output:
pulling from http://frontaccounting.hg.sourceforge.net:8000/hgroot/frontaccounting/default searching for changes adding changesets adding manifests adding file changes added 5 changesets with 9 changes to 8 files 8 files updated, 0 files merged, 0 files removed, 0 files unresolved
Locally update the unstable branch (v2.4.x):
cd /var/lib/vz/Repos/Mercurial/FrontAc/unstable hg pull -u hg update -C unstable tar -czf ../FrontAc_unstable_Mer_`hg log -l 1 | grep "changeset: " | cut -d":" -f2 | sed -e 's/^[ \t]*//'`_`date +%Y-%m-%d`.tar.gz . --exclude=.hg* cd ..
Mercurial Output:
pulling from http://frontaccounting.hg.sourceforge.net:8000/hgroot/frontaccounting/unstable searching for changes adding changesets adding manifests adding file changes added 5 changesets with 9 changes to 8 files 8 files updated, 0 files merged, 0 files removed, 0 files unresolved