Benutzer-Werkzeuge

Webseiten-Werkzeuge


becki:linux:mercurial_tips

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
becki:linux:mercurial_tips [2015-11-09 09:31]
becki [Working with Git Repositories]
becki:linux:mercurial_tips [2018-05-15 15:49] (aktuell)
becki [Undoing Changes]
Zeile 122: Zeile 122:
 [[http://​mercurial.selenic.com/​wiki/​QuickStart#​Setting_up_a_new_Mercurial_project|Source]] [[http://​mercurial.selenic.com/​wiki/​QuickStart#​Setting_up_a_new_Mercurial_project|Source]]
  
 +==== Templates and Styles ==
 +
 +Log-like commands can be formatted with froatting strings, wich ar called templates. A style is simply a precanned template. Command to list all installed styles:
 +
 +  hg log --template list
 +
 +Command to incluce phase info into the log:
 +
 +  hg glog --template phases
 +  hg glog -T phases
  
 ==== Converting Repo from CVS == ==== Converting Repo from CVS ==
Zeile 221: Zeile 231:
 ''​hg histedit''​ e.g. for merging serveral changesets into one. See [[hg>​wiki/​HisteditExtension|Wiki]] ''​hg histedit''​ e.g. for merging serveral changesets into one. See [[hg>​wiki/​HisteditExtension|Wiki]]
  
 +Wrong histeds may be reverted by ''​hg unbundle .hg/​strip-backup/<​backupfile>''​. This works for wrong ''​hg rebase''​s as well.
 ==== '​cherry-picking == ==== '​cherry-picking ==
  
Zeile 296: Zeile 307:
 FIXME Verify: FIXME Verify:
  
-  - L needs a (manually created) //​bookmark//​ ''​master''​ which tells HgGit to push to / pull from which branch on R+  - L needs a (manually created) //​bookmark//​ ''​master''​ which tells HgGit to push to / pull from which branch on R. Checkout if that bookmark must point to tip in order to get pushed all commits! Checkout if the bookmark must be active on L!
   - The //tag// ''​default/​master''​ is autmatically created and moved on L on every push to / pull from R   - The //tag// ''​default/​master''​ is autmatically created and moved on L on every push to / pull from R
   - In order to push from L to R, R must not be on the branch to which to L wants to push (see [[git#​push]])   - In order to push from L to R, R must not be on the branch to which to L wants to push (see [[git#​push]])
  
 +See https://​www.mercurial-scm.org/​wiki/​HgGit
 ==== Access Github == ==== Access Github ==
  
becki/linux/mercurial_tips.1447061481.txt.gz · Zuletzt geändert: 2015-11-09 09:31 von becki

Impressum - Datenschutzerklärung