Skip to contentSkip to conversation

dim: Update docs for update-branches

PATCH In review Daniel Vetter 3 participants 6 messages Dec 8, 2016 – Dec 12, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dim: Update docs for update-branches

It's been years since drm-intel had only one maintainer, and the primary use-case for dim ub was only to sync between machines. Update the docs to reflect this, to avoid misleading committers. Also update the maintainer-tools branch, which is something Paulo's script also does.

Motivated because Paulo typed an actualize.sh script which does exactly what dim ub is meant to do.

v2: Also update quickstart guide.

v3: And spelling fixes.

---
 dim     |  3 +++
 dim.rst | 11 ++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
dim +3 -0
index e0551ace54e4..3e82de96b4ab 100755
@@ -1293,6 +1293,9 @@ function dim_update_branches
 	dim_checkout drm-intel-next
 	$DRY git reset --hard $DIM_DRM_INTEL_REMOTE/drm-intel-next
 
+	cd $DIM_PREFIX/maintainer-tools
+	git pull --rebase
+
 	update_rerere_cache
 }
 
dim.rst +6 -5
index 0c52ab43e400..b9cb41a2ba5b 100644
@@ -74,11 +74,8 @@ Setup git maintainer branches in the given prefix.
 
 update-branches
 ---------------
-Updates all maintainer branches. Only needs to be run to synchronize branches
-between different machines (or maintainers fwiw). As long a given branch is
-always maintained from the same machine, even if different branches are
-maintained on different machines (by different maintainers), there's no need to
-run this command.
+Updates all maintainer branches. Useful to synchronize all branches when other
+maintainers and committers pushed patches meanwhile.
 
 status
 ------
@@ -408,6 +405,10 @@ corresponding to this repository is defined by DIM_DRM_INTEL in your .dimrc.
 You should also have directories called maintainer-tools, drm-tip (for
 rebuilding the tree), and drm-intel-rerere for some dim-internal book-keeping.
 
+If someone else has pushed patches first resync using::
+
+   $ dim update-branches
+
 Applying patches to dinq is done in the main repository with::
 
     $ cat patch.mbox | dim apply-queued
Signature · 6 lines
2.10.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 25 lines · Daniel Vetter

It's been years since drm-intel had only one maintainer, and the primary use-case for dim ub was only to sync between machines. Update the docs to reflect this, to avoid misleading committers. Also update the maintainer-tools branch, which is something Paulo's script also does.

Motivated because Paulo typed an actualize.sh script which does exactly what dim ub is meant to do.

v2: Also update quickstart guide.

v3: And spelling fixes.

---
 dim     |  3 +++
 dim.rst | 11 ++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
dim +0 -0
index e0551ace54e4..3e82de96b4ab 100755

dim function dim_update_branches · line 1298

Quoted 6 lines
dim +3 -0
@@ -1293,6 +1293,9 @@ function dim_update_branches
 	dim_checkout drm-intel-next
 	$DRY git reset --hard $DIM_DRM_INTEL_REMOTE/drm-intel-next
 
+	cd $DIM_PREFIX/maintainer-tools
+	git pull --rebase
+

Ooops?

Quoted 32 lines
dim +0 -0
 	update_rerere_cache
 }
 
dim.rst +6 -5
index 0c52ab43e400..b9cb41a2ba5b 100644
@@ -74,11 +74,8 @@ Setup git maintainer branches in the given prefix.
 
 update-branches
 ---------------
-Updates all maintainer branches. Only needs to be run to synchronize branches
-between different machines (or maintainers fwiw). As long a given branch is
-always maintained from the same machine, even if different branches are
-maintained on different machines (by different maintainers), there's no need to
-run this command.
+Updates all maintainer branches. Useful to synchronize all branches when other
+maintainers and committers pushed patches meanwhile.
 
 status
 ------
@@ -408,6 +405,10 @@ corresponding to this repository is defined by DIM_DRM_INTEL in your .dimrc.
 You should also have directories called maintainer-tools, drm-tip (for
 rebuilding the tree), and drm-intel-rerere for some dim-internal book-keeping.
 
+If someone else has pushed patches first resync using::
+
+   $ dim update-branches
+
 Applying patches to dinq is done in the main repository with::
 
     $ cat patch.mbox | dim apply-queued
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw
Quoted 29 lines · Jani Nikula
Quoted 28 lines · Daniel Vetter

It's been years since drm-intel had only one maintainer, and the primary use-case for dim ub was only to sync between machines. Update the docs to reflect this, to avoid misleading committers. Also update the maintainer-tools branch, which is something Paulo's script also does.

Motivated because Paulo typed an actualize.sh script which does exactly what dim ub is meant to do.

v2: Also update quickstart guide.

v3: And spelling fixes.

---
 dim     |  3 +++
 dim.rst | 11 ++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
dim +0 -0
index e0551ace54e4..3e82de96b4ab 100755
@@ -1293,6 +1293,9 @@ function dim_update_branches
 	dim_checkout drm-intel-next
 	$DRY git reset --hard $DIM_DRM_INTEL_REMOTE/drm-intel-next
 
Quoted 5 lines

dim function dim_update_branches · line 1298

Quoted 3 lines
dim +3 -0
+	cd $DIM_PREFIX/maintainer-tools
+	git pull --rebase
+

Ooops?

From the commit message: "Also update the maintainer-tools branch, which is something Paulo's script also does." This way dim update-branches updates everything, and I think that's good, I liked that idea from Paulo's script a lot.
-Daniel

Quoted 37 lines
Quoted 34 lines
dim +0 -0
 	update_rerere_cache
 }
 
dim.rst +6 -5
index 0c52ab43e400..b9cb41a2ba5b 100644
@@ -74,11 +74,8 @@ Setup git maintainer branches in the given prefix.
 
 update-branches
 ---------------
-Updates all maintainer branches. Only needs to be run to synchronize branches
-between different machines (or maintainers fwiw). As long a given branch is
-always maintained from the same machine, even if different branches are
-maintained on different machines (by different maintainers), there's no need to
-run this command.
+Updates all maintainer branches. Useful to synchronize all branches when other
+maintainers and committers pushed patches meanwhile.
 
 status
 ------
@@ -408,6 +405,10 @@ corresponding to this repository is defined by DIM_DRM_INTEL in your .dimrc.
 You should also have directories called maintainer-tools, drm-tip (for
 rebuilding the tree), and drm-intel-rerere for some dim-internal book-keeping.
 
+If someone else has pushed patches first resync using::
+
+   $ dim update-branches
+
 Applying patches to dinq is done in the main repository with::
 
     $ cat patch.mbox | dim apply-queued
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#3 lore raw
Quoted 36 lines · Daniel Vetter
Quoted 29 lines · Jani Nikula
Quoted 28 lines · Daniel Vetter

It's been years since drm-intel had only one maintainer, and the primary use-case for dim ub was only to sync between machines. Update the docs to reflect this, to avoid misleading committers. Also update the maintainer-tools branch, which is something Paulo's script also does.

Motivated because Paulo typed an actualize.sh script which does exactly what dim ub is meant to do.

v2: Also update quickstart guide.

v3: And spelling fixes.

---
 dim     |  3 +++
 dim.rst | 11 ++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
dim +0 -0
index e0551ace54e4..3e82de96b4ab 100755
@@ -1293,6 +1293,9 @@ function dim_update_branches
 	dim_checkout drm-intel-next
 	$DRY git reset --hard $DIM_DRM_INTEL_REMOTE/drm-intel-next
 
Quoted 5 lines

dim function dim_update_branches · line 1298

Quoted 3 lines
dim +3 -0
+	cd $DIM_PREFIX/maintainer-tools
+	git pull --rebase
+

Ooops?

Quoted 4 lines

From the commit message: "Also update the maintainer-tools branch, which is something Paulo's script also does." This way dim update-branches updates everything, and I think that's good, I liked that idea from Paulo's script a lot.

Oh. Didn't expect that in a patch with "update docs" as the title.

I often run dim with the changes I'm developing, using branches other than maintainer-tools, so I'm not entirely thrilled.

BR,
Jani.

Quoted 39 lines

-Daniel

Quoted 37 lines
Quoted 34 lines
dim +0 -0
 	update_rerere_cache
 }
 
dim.rst +6 -5
index 0c52ab43e400..b9cb41a2ba5b 100644
@@ -74,11 +74,8 @@ Setup git maintainer branches in the given prefix.
 
 update-branches
 ---------------
-Updates all maintainer branches. Only needs to be run to synchronize branches
-between different machines (or maintainers fwiw). As long a given branch is
-always maintained from the same machine, even if different branches are
-maintained on different machines (by different maintainers), there's no need to
-run this command.
+Updates all maintainer branches. Useful to synchronize all branches when other
+maintainers and committers pushed patches meanwhile.
 
 status
 ------
@@ -408,6 +405,10 @@ corresponding to this repository is defined by DIM_DRM_INTEL in your .dimrc.
 You should also have directories called maintainer-tools, drm-tip (for
 rebuilding the tree), and drm-intel-rerere for some dim-internal book-keeping.
 
+If someone else has pushed patches first resync using::
+
+   $ dim update-branches
+
 Applying patches to dinq is done in the main repository with::
 
     $ cat patch.mbox | dim apply-queued
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#4 lore raw
Quoted 37 lines · Jani Nikula
Quoted 36 lines · Daniel Vetter
Quoted 34 lines · Jani Nikula
Quoted 25 lines · Daniel Vetter

It's been years since drm-intel had only one maintainer, and the primary use-case for dim ub was only to sync between machines. Update the docs to reflect this, to avoid misleading committers. Also update the maintainer-tools branch, which is something Paulo's script also does.

Motivated because Paulo typed an actualize.sh script which does exactly what dim ub is meant to do.

v2: Also update quickstart guide.

v3: And spelling fixes.

---
 dim     |  3 +++
 dim.rst | 11 ++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
dim +0 -0
index e0551ace54e4..3e82de96b4ab 100755

dim function dim_update_branches · line 1298

Quoted 6 lines
dim +3 -0
@@ -1293,6 +1293,9 @@ function dim_update_branches
 	dim_checkout drm-intel-next
 	$DRY git reset --hard $DIM_DRM_INTEL_REMOTE/drm-intel-next
 
+	cd $DIM_PREFIX/maintainer-tools
+	git pull --rebase
+

Ooops?

Quoted 6 lines
Quoted 4 lines

From the commit message: "Also update the maintainer-tools branch, which is something Paulo's script also does." This way dim update-branches updates everything, and I think that's good, I liked that idea from Paulo's script a lot.

Oh. Didn't expect that in a patch with "update docs" as the title.

Yeah, subject is misleading.

Quoted 2 lines

I often run dim with the changes I'm developing, using branches other than maintainer-tools, so I'm not entirely thrilled.

Should I check whether it's still on the maintainer-tools branch and only update if that's the case? That should cover all use-cases I hope ... -Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw
Quoted 45 lines · Daniel Vetter
Quoted 37 lines · Jani Nikula
Quoted 36 lines · Daniel Vetter
Quoted 34 lines · Jani Nikula
Quoted 25 lines · Daniel Vetter

It's been years since drm-intel had only one maintainer, and the primary use-case for dim ub was only to sync between machines. Update the docs to reflect this, to avoid misleading committers. Also update the maintainer-tools branch, which is something Paulo's script also does.

Motivated because Paulo typed an actualize.sh script which does exactly what dim ub is meant to do.

v2: Also update quickstart guide.

v3: And spelling fixes.

---
 dim     |  3 +++
 dim.rst | 11 ++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
dim +0 -0
index e0551ace54e4..3e82de96b4ab 100755

dim function dim_update_branches · line 1298

Quoted 6 lines
dim +3 -0
@@ -1293,6 +1293,9 @@ function dim_update_branches
 	dim_checkout drm-intel-next
 	$DRY git reset --hard $DIM_DRM_INTEL_REMOTE/drm-intel-next
 
+	cd $DIM_PREFIX/maintainer-tools
+	git pull --rebase
+

Ooops?

Quoted 6 lines
Quoted 4 lines

From the commit message: "Also update the maintainer-tools branch, which is something Paulo's script also does." This way dim update-branches updates everything, and I think that's good, I liked that idea from Paulo's script a lot.

Oh. Didn't expect that in a patch with "update docs" as the title.

Quoted 7 lines

Yeah, subject is misleading.

Quoted 2 lines

I often run dim with the changes I'm developing, using branches other than maintainer-tools, so I'm not entirely thrilled.

Should I check whether it's still on the maintainer-tools branch and only update if that's the case? That should cover all use-cases I hope ...

That would work fine, thanks.

BR,
Jani.

Quoted 1 line

-Daniel

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx