#12530: Improve the sage-combinat script to support guards for developpers 
versions
------------------------------+---------------------------------------------
   Reporter:  nthiery         |          Owner:  leif             
       Type:  enhancement     |         Status:  needs_work       
   Priority:  major           |      Milestone:  sage-5.0         
  Component:  scripts         |       Keywords:                   
Work_issues:                  |       Upstream:  N/A              
   Reviewer:  Florent Hivert  |         Author:  Nicolas M. ThiƩry
     Merged:                  |   Dependencies:                   
------------------------------+---------------------------------------------

Comment(by hivert):

 How adding the following diff to the script ?
 {{{
 #!diff
 diff --git a/sage-combinat b/sage-combinat
 --- a/sage-combinat
 +++ b/sage-combinat
 @@ -171,7 +171,10 @@ def encode_sage_version_for_comparison(v
      version = version.replace("alpha", "-3.")
      version = version.replace("beta", "-2.")
      version = version.replace("rc", "-1.")
 -    return [int(s) for s in re.split("\.|_", version)]+[0]
 +    try:
 +        res = [int(s) for s in re.split("\.|_", version)]+[0]
 +    except ValueError:
 +        error("Invalid guard in the mercurial queue: %s"%version)

  def cmp_sage_versions(version1, version2):
      """
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12530#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
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.

Reply via email to