[Tortoisehg-develop] New location for TortoiseHg repositories

Arne Babenhauserheide arne_bab at web.de
Sat Feb 7 05:32:16 CST 2009


Am Freitag 06 Februar 2009 06:07:34 schrieb TK Soh:
> > Otherwise you could create some push hooks for the website which
> > automatically update the site. That's what I do for some of my sites.
>
> I'm just curious how it's done.

I wrote a (german) guide on that: 
- http://draketo.de/deutsch/freie-software/licht/webseiten-aktualisieren-mit-
mercurial-und-lftp

The short version: 
------ ------ Datei ------ ------
 [paths]
 # default-push = http://USER:PASSWORD@freehg.org/u/ArneBab/erynnia/
[hooks]
 # Update my website automatically when I push the repo.
 # Explanations: lftp -c 'COMMAND'
 # COMMAND:
 # open CMD -u USER,PASSWORD FTP_SERVER
 # CMD:
 # -R: Reverse -> local_source remote_source
 # -X GLOB: Glob: Shell-style -< exclude the .hg dir
outgoing = lftp -c 'open -e "mirror -R -X .hg/ ABS_LOCAL_PATH 
RELATIVE_PATH_FTP" -u USER,PASS ftp://FTP_SERVER '
------ ------ /Datei ------ ------

I use a similar approach for making simple sites with markdown syntax: 
- Hook description: http://rakjar.de/pymarkdown_minisite/readme.html
- Simple setup: http://rakjar.de/pymarkdown_minisite/simple_usage.html

Best wishes, 
Arne
-- 
-- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln.
-- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the 
history of free software.
-- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :)

-- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20090207/b7c4cd0d/attachment.pgp 


More information about the Mercurial mailing list