SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Downloaden Sie, um offline zu lesen
Named Branches
Recap: Branches
•  Unabhängige, parallele Entwicklung
–  Z. B. zwei Features

•  „Merge“: Entwicklung von einem
Branch auf einen anderen übernehmen
–  ... erst, wenn fertig, getestet, abgenommen
–  ... in der Reihenfolge, wie es fertig wird
Branch Repos („forks“)
Branch Repos („forks“) - 2
•  Getrennte Repos in getrennten
Verzeichnissen
Branch Repos („forks“) - 3
•  Das kennt ihr schon!

h"p://stevelosh.com/blog/2009/08/a-­‐guide-­‐to-­‐branching-­‐in-­‐mercurial/	
  
Also warum was ändern?
•  Öfter mal was Neues
•  Geistig fit bleiben
Also warum was ändern? (reloaded)
•  Keine wiederholten composerDownloads der gleichen Dinge (in
verschiedenen Ordnern)
§  Nur ggf. „delta“ bei unterschiedlichen Deps

•  Bei composer-Packages müssen wir es
so machen
§  Einheitlichkeit, Gewöhnung
•  Leichter und schneller anzulegen
§  Lokaler Befehl statt Kiln-Aktion
Enter named branches

h"p://stevelosh.com/blog/2009/08/a-­‐guide-­‐to-­‐branching-­‐in-­‐mercurial/	
  
Hands on – Setup
•  cd ~/Projekte!
•  hg clone http://bit.ly/HeAxhr
case-22079-up!
•  hg clone case-22079-up case-22079!
•  cd case-22079!
Hands on – Branches zeigen und
wechseln
•  hg branches!
•  hg up –c {branchname}!
–  „-c“: Abbrechen, falls lokale Änderungen
–  Sonst werden Änderungen mit auf den neuen Branch
genommen
–  „-C“: Änderungen wegschmeißen und auf sauberen Stand
wechseln

•  Branch-Namen:
–  „default“
–  „you name it“
–  Nicht: „tip“ (vergesst „tip“)
PhpStorm - Branches
Hands on – Commit auf Branch

Situa>onal	
  awareness?	
  
Hands on – Push it, baby

„-­‐b	
  .“	
  meint	
  „mein	
  
aktueller	
  Branch“	
  
Hands on - Pull
Kiln – Branches
Kiln – Eindimensional, bi e
Kiln – History per-branch
Kiln – etwas komplizierteres Beispiel
„branch	
  heads“	
  

auf	
  „0.1.x“	
  

auf	
  „default“	
  
Kiln - Related
•  „Related“ ist für fork-basiertes
Branching gedacht
•  Zeigt nur branch-Punkte und Heads
•  Hilfreich?
Probiert‘s aus...
Lokale fork-Repos
•  hg clone ... projekt-A!
•  cd projekt-A ; hg up -c
feature_a ; cd ..!
•  hg clone ... projekt-B!
•  cd projekt-B ; hg up –c
feature_b ; cd ..!
Mögliche Probleme?
•  Man „sieht“ nicht so direkt, auf
welchem Branch man arbeitet?
•  In Kiln nicht ganz so gut unterstützt?
§  Gemeint: Grenzfälle wie Branch-Vergleich etc.

•  Nicht zwei Versionen „gleichzeitig“
aktiv?
•  Branch-Wechsel bei uncommitted
changes?
Take-outs für heute
•  Branch-Wechsel macht ggf. „phlough
install“ notwendig
•  hg up -c {branchname}!
•  hg branches!
•  hg [in|out|push|pull] -b . !
–  --new-branch, falls neuer Branch erzeugt/
merged

•  Konventionen:
–  Feature Branches „123_featuretitel “
–  Try-Branches: „try_{initials}_{case|
timestamp}_desc“ (Achtung: Permanent und
global)
Take-outs (2)
•  hg branch {neuer_name}!
•  hg merge {anderer_branch} +
hg commit!
•  hg ci --close-branch!
•  hg push -b . --new-branch (bei
Bedarf)
Anhang: Fortgeschri ene Themen
•  Braches anlegen
•  Cross-Branch merges (spooky!)
•  Zweige schließen
Branch anlegen
Branches zusammenführen
•  hg up default!
•  hg merge feature!
•  hg commit -m „...“!
•  à feature ist jetzt „inactive“, weil er
keinen Head mehr hat.
Branch schließen
•  hg up feature!
•  hg commit --close-branch -m
„...“!
•  à Branch ist jetzt „closed“
•  Nur hg branches --closed zeigt
ihn noch

Weitere ähnliche Inhalte

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

20131028 named braches

  • 2.
  • 3. Recap: Branches •  Unabhängige, parallele Entwicklung –  Z. B. zwei Features •  „Merge“: Entwicklung von einem Branch auf einen anderen übernehmen –  ... erst, wenn fertig, getestet, abgenommen –  ... in der Reihenfolge, wie es fertig wird
  • 5. Branch Repos („forks“) - 2 •  Getrennte Repos in getrennten Verzeichnissen
  • 6. Branch Repos („forks“) - 3 •  Das kennt ihr schon! h"p://stevelosh.com/blog/2009/08/a-­‐guide-­‐to-­‐branching-­‐in-­‐mercurial/  
  • 7. Also warum was ändern? •  Öfter mal was Neues •  Geistig fit bleiben
  • 8. Also warum was ändern? (reloaded) •  Keine wiederholten composerDownloads der gleichen Dinge (in verschiedenen Ordnern) §  Nur ggf. „delta“ bei unterschiedlichen Deps •  Bei composer-Packages müssen wir es so machen §  Einheitlichkeit, Gewöhnung •  Leichter und schneller anzulegen §  Lokaler Befehl statt Kiln-Aktion
  • 10. Hands on – Setup •  cd ~/Projekte! •  hg clone http://bit.ly/HeAxhr case-22079-up! •  hg clone case-22079-up case-22079! •  cd case-22079!
  • 11. Hands on – Branches zeigen und wechseln •  hg branches! •  hg up –c {branchname}! –  „-c“: Abbrechen, falls lokale Änderungen –  Sonst werden Änderungen mit auf den neuen Branch genommen –  „-C“: Änderungen wegschmeißen und auf sauberen Stand wechseln •  Branch-Namen: –  „default“ –  „you name it“ –  Nicht: „tip“ (vergesst „tip“)
  • 13. Hands on – Commit auf Branch Situa>onal  awareness?  
  • 14. Hands on – Push it, baby „-­‐b  .“  meint  „mein   aktueller  Branch“  
  • 15. Hands on - Pull
  • 18. Kiln – History per-branch
  • 19. Kiln – etwas komplizierteres Beispiel „branch  heads“   auf  „0.1.x“   auf  „default“  
  • 20. Kiln - Related •  „Related“ ist für fork-basiertes Branching gedacht •  Zeigt nur branch-Punkte und Heads •  Hilfreich? Probiert‘s aus...
  • 21. Lokale fork-Repos •  hg clone ... projekt-A! •  cd projekt-A ; hg up -c feature_a ; cd ..! •  hg clone ... projekt-B! •  cd projekt-B ; hg up –c feature_b ; cd ..!
  • 22. Mögliche Probleme? •  Man „sieht“ nicht so direkt, auf welchem Branch man arbeitet? •  In Kiln nicht ganz so gut unterstützt? §  Gemeint: Grenzfälle wie Branch-Vergleich etc. •  Nicht zwei Versionen „gleichzeitig“ aktiv? •  Branch-Wechsel bei uncommitted changes?
  • 23. Take-outs für heute •  Branch-Wechsel macht ggf. „phlough install“ notwendig •  hg up -c {branchname}! •  hg branches! •  hg [in|out|push|pull] -b . ! –  --new-branch, falls neuer Branch erzeugt/ merged •  Konventionen: –  Feature Branches „123_featuretitel “ –  Try-Branches: „try_{initials}_{case| timestamp}_desc“ (Achtung: Permanent und global)
  • 24. Take-outs (2) •  hg branch {neuer_name}! •  hg merge {anderer_branch} + hg commit! •  hg ci --close-branch! •  hg push -b . --new-branch (bei Bedarf)
  • 25. Anhang: Fortgeschri ene Themen •  Braches anlegen •  Cross-Branch merges (spooky!) •  Zweige schließen
  • 27. Branches zusammenführen •  hg up default! •  hg merge feature! •  hg commit -m „...“! •  à feature ist jetzt „inactive“, weil er keinen Head mehr hat.
  • 28. Branch schließen •  hg up feature! •  hg commit --close-branch -m „...“! •  à Branch ist jetzt „closed“ •  Nur hg branches --closed zeigt ihn noch