Benutzer-Werkzeuge

Webseiten-Werkzeuge


becki:linux:hg_tips

Dies ist eine alte Version des Dokuments!


CVS Tips - Subversion Tips

Mercurial Tips

Getting Help

  • hg lists basic commands, hg help lists all commands and hg help <command> shows the help for <command>
  • Mercurial homepage with docu links

Initial import

Cd into the root directory of your project and type hg init. This merely creates the subdir .hg which is the repository.:?: The current dir becomes the working dir of the project.

Add all files to the project by hg add and hg commit

Source

Enable graphical log

Add this to the file $HOME/.hgrc:

[extensions]
hgext.graphlog =

Usage: hg glog [OPTIONS]

Source

More user friendly diff

Download and install colordiff from www.slackbuilds.org. Thed add the following to $HOME/.hgrc:

[extensions]
hgext.extdiff =
 
[extdiff]
cmd.cdiff = colordiff
opts.cdiff = -uprN

Usage: hg cdiff [...] [| less -R]

Sources: 1 2 3

Cookies helfen bei der Bereitstellung von Inhalten. Diese Website verwendet Cookies. Mit der Nutzung der Website erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Computer gespeichert werden. Außerdem bestätigen Sie, dass Sie unsere Datenschutzerklärung gelesen und verstanden haben. Wenn Sie nicht einverstanden sind, verlassen Sie die Website. Weitere Information
becki/linux/hg_tips.1247216913.txt.gz · Zuletzt geändert: 2009-07-10 09:08 von becki

Impressum - Datenschutzerklärung