План
- основные команды / основные идеи:
- darcs init[ialize] = git init = hg init
- darcs get = git clone = hg clone
- darcs put = () = hg clone
- darcs pull = git pull = hg pull -u / hg fetch
- darcs push = git push = hg push
- darcs rec[ord] = git commit = hg ci / hg checkin / hg commit
- darcs add * = git add * = hg add
- darcs rm = git rm = hg rm
- darcs mv = git mv = hg mv
- darcs wh[atsnew] = git diff = hg diff
- darcs wh[atsnew] -s = git status = hg stat
- darcs cha [-v] = git log [-p] = hg log [-p]
- полезные идеи:
- checkout: () = git checkout ... = hg co ...
- amend: darcs amend-record = git amend = ()
- darcs pull --dry-run ... = git fetch ...; git diff master origin/master = hg incoming ...
- tag
- тесты:
darcs setpref test "echo 'you really should write some tests'"; echo 'pull test' >> _darcs/prefs/defaults; echo 'record no-test' >> _darcs/prefs/defaults
- edit .git/hooks/pre-commit
- edit .hg/hgrc: [hooks] precommit.Name = hook
- () / () = git stash / git stash pop = hg shelve / hg unshelve
- () = git bisect = hg bisect
- настройки
- bundles
- _darcs/prefs/boring = .gitignore = .hgignore
- приятности:
- patch-tag / bitbucket, google code, ... / github, gitorious, ...
- () / git-server / mercurial-server
- darcs-web / git-web / hg server / hg-webdir
- hg convert
- () / gitk / hg view
- () / tortoise git / tortoise hg
Ссылки
darcs: http://www.darcs.net/manual; http://blog.interlinked.org/tutorials/darcs.html
git: http://www.kernel.org/pub/software/scm/git/docs/user-manual.html; Git is the C of Version COntrol Tools
mercurial: http://mercurial.selenic.com/learn/; http://hgbook.red-bean.com/read/;