Tools
Mercurial
(redirected from Tools.Hg)

Potential extensions
Note that most of those are actually to consider for code repository overall, thus could be interesting for Git too.
- wiki
- see discussion on #wiki/freenode at 08:58 the 17/09/2010 with TheSheep, author of hatta-wiki.org
- project self-management with Proposals.ProjectMeritocracy
- ΦFP-oriented
feed reader
- currently using newsbeuter which might be more programmable
- programming vocabulary learner
- described on ##PIM/freenode at 11:26 the 14th of September 2010
- see Cognition#LearningNewLanguage
- Python related example by Dan Villiom P. Christiansen (danchr on #mercurial/freenode)
from mercurial import hg, ui
repo = hg.repository(ui.ui(), '.')
for r in repo:
ctx = repo[r]
l = 0
for f in ctx:
l += ctx[f].data().count('\n')
# ctx.data() returns the text of the file
print r, l
- consider templating system in conjunction with the theming system to directly output content with its interface? (RSS fee reader, IdeaOntology, Wiki links, ...)
code timeline of code-repo generated with code-repo.plt to stay coherent with
wiki timeline
- other visualization for genifer project
From personal use
- hg help : the MOST important command ;)
- "History is Sacred" in DVCSAnalysis - Analysis of Git and Mercurial Project Hosting on Google Code
- hooks
- hghooklib A library of Python based hook scripts for Mercurial VCS
- which is different from PostCommitWebHooks Google Code How to use Post-Commit Web Hooks for your project.
- hg bisect which sounds very useful for Seedea:Content/Newconcepts#DeltaDebugging
- hg ignore and its .hgignore file
- hg manifest to display the list of the files within a specific revision
- for rev in $(seq 0 $(hg id -r tip -n)) ; do hg man -r $rev | xargs hg cat -r $rev | wc -l ; done thanks to Ry4an on #mercurial/freenode
- example with genifer-loc.png without .odp and .jar files and thanks to genifer-loc.plt
- hg cat to print the content of a file within a specific revision
- e.g. hg cat -r 0 `hg man -r 0` | wc -l
- hg man -r 0 -0 | xargs -0 hg cat -r 0 | wc -l thanks to danchr on #mercurial/freenode
- e.g. hg cat -r 0 `hg man -r 0` | wc -l
- web access (often deactivated)
- through CGI with
hgweb.cgiat http://www.innovativ.it/hgweb.cgi and withhgwebdir.cgiat http://www.innovativ.it/hgwebdir.cgi - through own minimal httpd
hg serveand lighttpdproxy.serverfrom port 8000 to http://hg.innovativ.it
- through CGI with
- hg log --template '{date}\n' | sed "s/\..*//" | sort -n | uniq > ~/www/socialbehaviors/edits_in_unixtime.data
- Chapter 11. Customizing the output of Mercurial by Bryan O'Sullivan, Mercurial: The Definitive Guide
- Accessing SSH Controlled Repositories From a Windows Client, Mercurial official wiki
- using Plink and Pageant
- Key-Based SSH Logins With PuTTY by Falko Timme, HowtoForge 2006
- Google Code supports Mercurial and also uses it for the wiki section
abort: outstanding uncommitted changesFAQ/CommonProblems, Mercurial official wikiabort: push creates new remote heads!Using Mercurial MDC- Understanding Mercurial, Mercurial official wiki
Tutorials
- Mercurial Project by Bryan O'Sullivan, Google Tech Talk 2006
- ~30min "If you are working on open source software, the only thing that you have working for you is :
- A: technical merit
- B: credibility"
- see also the last chapters of InformationRules
- ~30min "If you are working on open source software, the only thing that you have working for you is :
- Mercurial on BigTable by Jacob Lee, Google I/O 2009
- webhooks are supported
- Distributed Version Control (DVCS) With Mercurial by Ted Naleid, 2007
To do
- consider subrepos
- share http://hgbook.red-bean.com/ to Raymond Yee
- supports contributions, comment, RSS per chapter, etc
To explore
- ProjectMeritocracy#CurrentSituation
- alternatives
- Programming#RCSRevision control software or RCS
- Programming#CVS(distributed) Version Control System or (D)VCS
- Programming#SCM Source Code Management
- Wikipedia:Comparison of revision control software
- Hg Init .com a Mercurial tutorial by Joel Spolsky
- up to part 3 on "Fixing goofs"
- Writing Mercurial extensions, Mercurial official wiki
- Intro to Distributed Version Control (Illustrated) by Kalid Azad, BetterExplained
Note
My notes on Tools gather what I know or want to know. Consequently they are not and will never be complete references. For this, official manuals and online communities provide much better answers.
CONTENT
CONTACT
UPDATES
LAST TWEET
RSS for this page only


