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

  * status:  needs_review => needs_work
  * reviewer:  => Dan Drake, John Cremona


Comment:

 [Written before seeing Dan's comment]
 I tried this.  The patches apply fine once I worked out where to apply the
 second one (on SAGE_ROOT/local/bin).

 I made a couple of clones, called test1 and test2 and tried just starting
 Sage with
 {{{
 env SAGE_BRANCH=test1 sage
 }}}
 and similar.  But I had problems running the main branch.  Using
 SAGE_BRANCH=main did not work.  And now, with the symlink from sage to
 sage-main in place, running sage with no SAGE_BRANCH set also fails:
 {{{
 IndexError                                Traceback (most recent call
 last)

 /home/jec/sage-current/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/jec/sage-4.6.alpha3/devel/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/jec/sage-current/devel/sage-main/build/sage/misc/misc.pyc in
 branch_current_hg_notice(branch)
    1889        If the branch is main, then return an empty string.
    1890     """
 -> 1891     if branch[-1] == '/':
    1892         branch = branch[:-1]
    1893     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.
 }}}

 So I think a little more work is needed.

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