#4511: [with patch; needs review] sage-combinat script won't work with two digit
version numbers (for example: 3.2)
----------------------------------+-----------------------------------------
Reporter: saliola | Owner: saliola
Type: defect | Status: new
Priority: major | Milestone: sage-3.2
Component: combinatorics | Resolution:
Keywords: sage-combinat script |
----------------------------------+-----------------------------------------
Comment (by saliola):
Whoever reviews this can apply it and test it with the following command
(it creates a new branch so it won't mess up your combinat installation):
{{{
sage -combinat install --branch=temp_combinat
}}}
But, I checked it throughly and it is working correctly (note that in the
above the output the 3.1 guard isn't selected, but below it is).
The docstring of qselect_backward_compatibility_patches:
{{{
r"""
Selects the appropriate guards for this version of sage
e.g. if we are running sage 3.0.2, then we want to apply all
the patches which are guarded by 3_0_3, 3_0_4, ...
"""
}}}
The current available guards are: 3_0_2, 3_0_3, 3_0_4, 3_0_6, 3_1, 3_1_2,
3_1_3. So for the current version 3.2, we should apply no patches, and
that is what happens:
{{{
>> sage -combinat install
...
updating working directory
43 files updated, 0 files merged, 0 files removed, 0 files unresolved
Active guards:
Skip backward compatibility patches for sage 3.0.2
Skip backward compatibility patches for sage 3.0.3
Skip backward compatibility patches for sage 3.0.4
Skip backward compatibility patches for sage 3.0.6
Skip backward compatibility patches for sage 3.1
Skip backward compatibility patches for sage 3.1.2
Skip backward compatibility patches for sage 3.1.3
Updating guards
sage -hg qselect -q -n
sage -hg qselect
no active guards
...
}}}
For version 3.1 (I only changed the version number in sage-banner), we
want to apply all patches guarded by 3_1_2 and 3_1_3:
{{{
>> sage -combinat install
...
updating working directory
43 files updated, 0 files merged, 0 files removed, 0 files unresolved
Active guards:
Skip backward compatibility patches for sage 3.0.2
Skip backward compatibility patches for sage 3.0.3
Skip backward compatibility patches for sage 3.0.4
Skip backward compatibility patches for sage 3.0.6
Skip backward compatibility patches for sage 3.1
Keep backward compatibility patches for sage 3.1.2
Keep backward compatibility patches for sage 3.1.3
Updating guards
sage -hg qselect -q -n
sage -hg qselect 3_1_2 3_1_3
number of unguarded, unapplied patches has changed from 31 to 33
...
}}}
For version 3.0.6 (again, I only changed the version number in sage-
banner), we want to apply all patches guarded by 3_0_6, 3_1, 3_1_2, 3_1_3.
{{{
>> sage -combinat install
...
updating working directory
43 files updated, 0 files merged, 0 files removed, 0 files unresolved
Active guards:
Skip backward compatibility patches for sage 3.0.2
Skip backward compatibility patches for sage 3.0.3
Skip backward compatibility patches for sage 3.0.4
Keep backward compatibility patches for sage 3.0.6
Keep backward compatibility patches for sage 3.1
Keep backward compatibility patches for sage 3.1.2
Keep backward compatibility patches for sage 3.1.3
Updating guards
sage -hg qselect -q -n
sage -hg qselect 3_0_6 3_1 3_1_2 3_1_3
number of unguarded, unapplied patches has changed from 31 to 36
...
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4511#comment:5>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---