#9967: Allow concurrent running/testing of multiple sage branches
-------------------------------+--------------------------------------------
   Reporter:  robertwb         |       Owner:  ddrake      
       Type:  defect           |      Status:  needs_review
   Priority:  major            |   Milestone:  sage-4.6    
  Component:  doctest          |    Keywords:              
     Author:  Robert Bradshaw  |    Upstream:  N/A         
   Reviewer:                   |      Merged:              
Work_issues:                   |  
-------------------------------+--------------------------------------------
Changes (by ddrake):

  * owner:  mvngu => ddrake


Comment:

 Found a problem already with the patch to {{{misc.py}}}: in
 {{{branch_current_hg_notice}}} (line 1872), when using the default branch,
 the function gets passed the empty string and things blow up when it does
 {{{branch[-1]}}} on the empty string.

 Here's the traceback:
 {{{
 IndexError                                Traceback (most recent call
 last)

 /home/drake/s/sage-4.6.alpha3/local/lib/python2.6/site-
 packages/IPython/ipmaker.pyc in force_import(modname)
      64         reload(sys.modules[modname])
      65     else:
 ---> 66         __import__(modname)
      67
      68

 /home/drake/s/sage-4.6.alpha3/ipy_profile_sage.py in <module>()
      14     from sage.misc.interpreter import attached_files
      15
 ---> 16     branch =
 sage.misc.misc.branch_current_hg_notice(sage.misc.misc.branch_current_hg())
      17     if branch:
      18         print branch

 /home/drake/s/sage-4.6.alpha3/devel/sage-main/build/sage/misc/misc.pyc in
 branch_current_hg_notice(branch)
    1890     """
    1891     print 'branch_hg_current_hg_notcie got: "%s"' % branch
 -> 1892     if branch[-1] == '/':
    1893         branch = branch[:-1]
    1894     if branch == 'main':

 IndexError: string index out of range
 Error importing ipy_profile_sage - perhaps you should run %upgrade?
 WARNING: Loading of ipy_profile_sage failed.
 }}}

 Also, the comment in {{{branch_current_hg_notice}}} seems wrong -- I can't
 see where that function gets called from sage-sage, which is a shell
 script, not a Python script.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9967#comment:6>
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