Changeset 8335:f8548e5b6122


Ignore:
Timestamp:
12/01/07 21:36:01 (5 years ago)
Author:
Jonathan Hanke <jonhanke@…>
Branch:
default
Message:

Buxfix to correctly decide about the "main" branch separately for incoming and outgoing servers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/misc/hg.py

    r8334 r8335  
    10141014 
    10151015if (SAGE_INCOMING_SERVER == DEFAULT_SERVER):      ## Always uses the "main" branch on the default server. 
    1016     temp_branch_name = "main" 
     1016    temp_in_branch_name = "main" 
    10171017else: 
    1018     temp_branch_name = branch_current_hg() 
     1018    temp_in_branch_name = branch_current_hg() 
     1019 
     1020if (SAGE_OUTGOING_SERVER == DEFAULT_SERVER):      ## Always uses the "main" branch on the default server. 
     1021    temp_out_branch_name = "main" 
     1022else: 
     1023    temp_out_branch_name = branch_current_hg() 
     1024 
    10191025 
    10201026if (SAGE_INCOMING_SERVER != DEFAULT_SERVER) or (SAGE_OUTGOING_SERVER != DEFAULT_SERVER): 
     
    10291035hg_sage    = HG('%s/devel/sage'%SAGE_ROOT, 
    10301036                'SAGE Library Source Code', 
    1031                     pull_url='%s/sage-%s'%(SAGE_INCOMING_SERVER, temp_branch_name), 
    1032                     push_url='%s/sage-%s'%(SAGE_OUTGOING_SERVER, temp_branch_name), 
     1037                    pull_url='%s/sage-%s'%(SAGE_INCOMING_SERVER, temp_in_branch_name), 
     1038                    push_url='%s/sage-%s'%(SAGE_OUTGOING_SERVER, temp_out_branch_name), 
    10331039                cloneable=True, 
    10341040                obj_name='sage') 
Note: See TracChangeset for help on using the changeset viewer.