freebsd/portsnap-hg/howto
author Tomas Zeman <tzeman@volny.cz>
Sun, 25 Aug 2013 21:04:14 +0200
changeset 34 11d20ddca9d8
parent 19 f1c52a4d5ca3
permissions -rw-r--r--
scm/hg-git-rosetta-stone: simplified mapping between hg commands and git commands If you know how to use hg very well and just looking at how to do the same things in git, this page is right for you. Use it like a dictionary hg -> git.

Howto import ports (updated by portsnap) into mercurial repo:

(assumed under user portsnap with homedir /portsnap)

  * Repository:

hg init ~/ports
hg add .hgignore #see hgignore file

  * Portsnap conf:

~/.portsnaprc #see portsnaprc

  * Initial import:

PS="portsnap -f /portsnap/.portsnaprc"
PSDIR=/portsnap/ports
$PS fetch
$PS extract
cd $PSDIR && hg addremove && hg ci ...

  * Regular updates (crontab):

PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin
PSDIR=/portsnap/ports
PS="portsnap -f /portsnap/.portsnaprc"
PSLOG=/portsnap/log/portsnap.log
13 */6  * * *   cd $PSDIR && $PS cron && $PS update && hg addremove && hg ci -m 'Update' >> $PSLOG