Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34d5594

Browse files
committed
Merged revisions 6752,6754 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_98_5_maint ........ r6752 | efiring | 2009-01-06 14:56:03 -0500 (Tue, 06 Jan 2009) | 2 lines Backport 6745, 6746 from trunk ........ r6754 | mdboom | 2009-01-06 15:51:53 -0500 (Tue, 06 Jan 2009) | 1 line Update git instructions with information about working on branches. ........ svn path=/trunk/matplotlib/; revision=6755
1 parent 6b90fa0 commit 34d5594

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

doc/devel/coding_guide.rst

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ enter the following commands::
174174
cd mpl.git
175175
git config --add remote.origin.fetch +refs/remotes/*:refs/remotes/*
176176
git fetch
177-
git svn init --trunk=trunk/matplotlib --tags=tags https://matplotlib.svn.sourceforge.net/svnroot/matplotlib
177+
git svn init --branches=branches --trunk=trunk/matplotlib --tags=tags https://matplotlib.svn.sourceforge.net/svnroot/matplotlib
178178

179179
# Now just get the latest svn revisions from the SourceForge SVN repository
180180
git svn fetch -r 6300:HEAD
@@ -224,6 +224,37 @@ rebase it to the new master::
224224
git checkout whizbang-branch
225225
git rebase master
226226

227+
Working on a maintenance branch from git
228+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
229+
230+
The matplotlib maintenance branches are also available through git.
231+
(Note that the ``git svn init`` line in the instructions above was
232+
updated to make this possible. If you created your git mirror without
233+
a ``--branches`` option, you will need to perform all of the steps
234+
again in a new directory).
235+
236+
You can see which branches are available with::
237+
238+
git branch -a
239+
240+
To switch your working copy to the 0.98.5 maintenance branch::
241+
242+
git checkout v0_98_5_maint
243+
244+
Then you probably want to (as above) create a new local branch based
245+
on that branch::
246+
247+
git checkout -b whizbang-branch
248+
249+
When you ``git svn dcommit`` from a maintenance branch, it will commit
250+
to that branch, not to the trunk.
251+
252+
While it should theoretically be possible to perform merges from a git
253+
maintenance branch to a git trunk and then commit those changes back
254+
to the SVN trunk, I have yet to find the magic incantation to make
255+
that work. However, svnmerge as described `above <svn-merge>`_ can be
256+
used and in fact works quite well.
257+
227258
A note about git write access
228259
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
229260

lib/matplotlib/contour.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,8 @@ def _process_linestyles(self):
875875
tlinestyles = tlinestyles[:Nlev]
876876
else:
877877
raise ValueError("Unrecognized type for linestyles kwarg")
878+
elif cbook.iterable(linestyles): # len(linestyles) >= Nlev
879+
tlinestyles = list(linestyles)[:Nlev]
878880
return tlinestyles
879881

880882
def get_alpha(self):

0 commit comments

Comments
 (0)