[petsc-dev] git repo branches housekeeping

Balay, Satish balay at mcs.anl.gov
Mon Sep 30 10:39:27 CDT 2019


ref: https://lists.mcs.anl.gov/pipermail/petsc-dev/2017-September/021359.html

I've deleted all deveopment branches that are already merged into
maint (v3.12) from https://gitlab.com/petsc/petsc

However if you wish to remove these branches from your clone - it has
to be done manually (in each clone).

To get this list of branches to delete - you can do:

git branch --merged v3.12 |egrep -v " (maint|master|next)" > branches_to_delete

After *verifying* the list is correct - and ok to delete - they can be
deleted with:

git branch -d `cat branches_to_delete`

And to sync the [deleted] remote branch list info - you can do:

git fetch -p

For more housekeeping - look at the remaining local and remote
branches and figure-out what to do. [perhaps some of them are
intermediate branches during rebase - or abandoned features that
should be deleted. And with the new workflow - we could have branches
squashed during merge - that would be equivalent to rebased branches -
that should be deleted]. For my branches - I would do:

git branch
git branch -r |grep balay

Satish

----------------
reference for self:

$ git branch -r --merged v3.12 |egrep  -v origin/\(maint\|master\|next\) |sed -e s%origin/%:% >  remote_branches_to_delete
$ git push -u origin `cat remote_branches_to_delete` | tee delete_branches.log
To gitlab.com:petsc/petsc.git
 - [deleted]               360-ci-error-tracker
 - [deleted]               BarryFSmith/add-information-on-running-usrbinbash-lo-1561921668145
 - [deleted]               Fande-Kong/feature-maij-hmg
 - [deleted]               Fande-Kong/fix_clean_hash_table
 - [deleted]               Junchao-Zhang/part2tex-edited-online-with-bitbucket-1563223298438
 - [deleted]               Patrick-Sanan/shellpcc-edited-online-with-bitbucket-1564998221921
 - [deleted]               Patrick-Sanan/stagutilsc-edited-online-with-bitbucket-1560787739826
 - [deleted]               Stefano-Zampini/taosolver_hjc-edited-online-with-bitbuck-1562852734303
 - [deleted]               balay/add-MatBlockMatSetPreallocation-API/maint
 - [deleted]               balay/add-cxx-dialect-flgs-to-petscconf_h
 - [deleted]               balay/add-mpi-exec-check/maint
 - [deleted]               balay/build-update-datafiles
 - [deleted]               balay/check-tmp-noexec
 - [deleted]               balay/exodusii-missing-netcdf-pnetcdf-dir
 - [deleted]               balay/fix-configure-non-english-text-handling/maint
 - [deleted]               balay/fix-errorcheck-with-batch-hdf5-dir
 - [deleted]               balay/fix-ex-for-64idx
 - [deleted]               balay/fix-force
 - [deleted]               balay/fix-msys2-link
 - [deleted]               balay/fix-msys2-link-2
 - [deleted]               balay/mumps-5.2.1
 - [deleted]               balay/test
 - [deleted]               balay/update-petsc4py-DIVERGED_TR_DELTA
 - [deleted]               balay/update-petsc4py-jul-2019
 - [deleted]               balay/update-petsc4py-rm-PETSC_USE_SCALAR_type-2
 - [deleted]               balay/update-solaris-mpich
 - [deleted]               barry/10-7-2019/fix-prefix-null-error-message
 - [deleted]               barry/10-7-2019/petscint-size-t
 - [deleted]               barry/13-7-2019/docs-update-installation-doe-windows
 - [deleted]               barry/13-7-2019/fix-gmaketest-depend
 - [deleted]               barry/13-7-2019/fix-mkl-version
 - [deleted]               barry/13-7-2019/warn-old-gnumake
 - [deleted]               barry/2-7-2019/add-info-on-doe-machines-to-installation
 - [deleted]               barry/2-7-2019/fix-colpack-install
 - [deleted]               barry/2019-07-13/small-windows-features
 - [deleted]               barry/2019-07-14/fix-stag-example
 - [deleted]               barry/2019-07-18/fix-use-socket
 - [deleted]               barry/2019-07-19/PetscKernel-macros-to-functions
 - [deleted]               barry/2019-07-21/fix-petscmallocvalidate-checkmumpshermetian
 - [deleted]               barry/2019-07-21/parallel-fblaslapack-f2blaslapack
 - [deleted]               barry/2019-07-21/scalapack-mumps-parallel-make
 - [deleted]               barry/2019-07-22/fix-sdotnrm-blas-test
 - [deleted]               barry/2019-07-25/dalcinl/feature-math
 - [deleted]               barry/2019-07-26/addmissing-pcgamgclassicalfortran
 - [deleted]               barry/2019-07-30/add-use-petscintcast-corrected
 - [deleted]               barry/2019-07-30/snesncg-updates
 - [deleted]               barry/2019-08-01/fix-matmpisbaijsetpreallocationcsr
 - [deleted]               barry/2019-08-04/add-petsc-prefix-hash-to-example
 - [deleted]               barry/2019-08-04/fix-maint-hdf5-include/maint
 - [deleted]               barry/2019-08-17/improve-openmp-handling
 - [deleted]               barry/2019-08-21/updates-pardiso
 - [deleted]               barry/2019-08-22/fix-fblaslapack-for-nag
 - [deleted]               barry/2019-09-01/feature-streams-openmp
 - [deleted]               barry/2019-09-01/robustify-version-check
 - [deleted]               barry/2019-09-15/fix-gsscant-getarray
 - [deleted]               barry/2019-09-20/remove-io-sequentialphase
 - [deleted]               barry/4-7-2019/src-code-fix-for-msys2/maint
 - [deleted]               barry/7-7-2019/clearer-config-messages
 - [deleted]               barry/9-7/2019/SNES_CONVERGED_TR_DELTA-Error
 - [deleted]               barry/check-quad-math
 - [deleted]               barry/cleanup-oldfortran-rules
 - [deleted]               barry/cleanup-petscconf-h
 - [deleted]               barry/feature-arch-hash
 - [deleted]               barry/feature-boundedint
 - [deleted]               barry/feature-pintocpu
 - [deleted]               barry/fix-fortran-cxx-libraries
 - [deleted]               barry/fix-matmffd
 - [deleted]               barry/fix-testharness-rm-dir-error
 - [deleted]               barry/fix-use-with-dynamic-ld
 - [deleted]               barry/newtontr-post-check
 - [deleted]               barry/no-batch-script
 - [deleted]               barry/petscoptionsint-help-message-new-value
 - [deleted]               barry/references-newtontr-cg
 - [deleted]               barry/rm-readwrite
 - [deleted]               barry/sanity-check-freshdownload
 - [deleted]               barry/update-openblas
 - [deleted]               barry/utilize-matdensegetarrayread
 - [deleted]               dalcinl/feature-math
 - [deleted]               denera/tao-linesearch-manual-pages
 - [deleted]               denera/tao-steplength-typo-fix
 - [deleted]               dmay/fix-MatPreallocator/maint
 - [deleted]               gropp/doc-fixes-1
 - [deleted]               hannah/gpu-computation-logging
 - [deleted]               hannah/gpu-gpu-logging
 - [deleted]               hannah/gpu-logging-WaitForGPU
 - [deleted]               hongzh/fix-random-adjoint-bug
 - [deleted]               hongzh/turn-on-avx512-kernels-by-default
 - [deleted]               hzhang/add-ksp-tutorials-ex6/master
 - [deleted]               hzhang/dmnetwork-vltogordering
 - [deleted]               hzhang/fix-matmissingdiag/maint
 - [deleted]               hzhang/opt-mumps-matmatsolve
 - [deleted]               hzhang/pdmnetwork-setup
 - [deleted]               jczhang/feature-better-quicksort-pivot
 - [deleted]               jczhang/feature-extend-vscat-example
 - [deleted]               jczhang/feature-sf-on-gpu
 - [deleted]               jczhang/fix-dm-originaldm/maint
 - [deleted]               jczhang/fix-matpreallocator-stash-bs
 - [deleted]               jczhang/fix-overlapped-sf
 - [deleted]               jczhang/fix-test-harness-empty-ouput-after-grep
 - [deleted]               jczhang/fix-ubuntu-openmpi-anysource
 - [deleted]               jczhang/fix-unused-variable
 - [deleted]               jczhang/sf-more-opts
 - [deleted]               jed/binary-io
 - [deleted]               jed/deprecate-dmgetdefaultsection
 - [deleted]               jed/examples-use-dmboundarytypes
 - [deleted]               jed/feature-plex-tensor-noninterpolated
 - [deleted]               jed/fix-DM-output-addresses
 - [deleted]               jed/fix-gpu-docs
 - [deleted]               jed/fix-med-types/maint
 - [deleted]               jed/fix-pkg-config/maint
 - [deleted]               jed/fix-type-type_name/maint
 - [deleted]               jed/gitlab-ci
 - [deleted]               jed/gmakefile-include-by-goals
 - [deleted]               jed/remove-TARGET_ARCH
 - [deleted]               jose/densecuda-warnings
 - [deleted]               jose/harness-requires-debug
 - [deleted]               jose/warning-glvis
 - [deleted]               karlrupp/aij-add-missing-settypes
 - [deleted]               karlrupp/change-gamg-reduction-logic-a-bit
 - [deleted]               karlrupp/fix-cuda-MatSeqAIJCUSPARSEGenerateTransposeForMult
 - [deleted]               karlrupp/fix-cuda-empty-procs
 - [deleted]               karlrupp/fix-cuda-vecset
 - [deleted]               karlrupp/fix-cusparse-transpose-numrows
 - [deleted]               karlrupp/fix-disable-inodes-for-gpus
 - [deleted]               karlrupp/remove-ancient-cuda-version-checks
 - [deleted]               knepley/comment-dmplexcreatespectralclosurepermu-1556140811897
 - [deleted]               knepley/externalhtml-edited-online-with-bitbucke-1556665077291
 - [deleted]               knepley/feature-benchmark-plotonly
 - [deleted]               knepley/feature-plex-hybrid-input
 - [deleted]               knepley/fix-med-inversion
 - [deleted]               knepley/fix-plex-distribute-overlap
 - [deleted]               pefarrell/pcksp-set-dm
 - [deleted]               pr1533/florianwechsung/fw/empty-patch-bug/master
 - [deleted]               pr1605/m_diehl/fortran-tests/master
 - [deleted]               pr1723/tappel/extend-mumps-parameters/master
 - [deleted]               pr1819/jkruzik/feature-pcdeflation/master
 - [deleted]               pr1835/al007/reset-prealloc-comm/master
 - [deleted]               pr1921/haplav/fix-plex-ex18-spacedim-1D/maint
 - [deleted]               psanan/dev-manual-petsc-extern-example-update
 - [deleted]               psanan/dmda-vtk-view-fieldnames
 - [deleted]               psanan/dmstag-periodic-one-rank
 - [deleted]               psanan/doc-dmstagcreatecompatibledmstag-manpage-typo-fix/maint
 - [deleted]               rmills/mat-kaij
 - [deleted]               stefano_zampini/GPU-matdensecuda
 - [deleted]               stefano_zampini/fix-cudadense-warnings
 - [deleted]               stefano_zampini/fix-partitioner
 - [deleted]               stefano_zampini/fix-plex
 - [deleted]               stefano_zampini/fix-plex-matis-bs
 - [deleted]               stefano_zampini/fix-wedge-s2t
 - [deleted]               stefano_zampini/sbaij-example


More information about the petsc-dev mailing list