Changeset 1676 for trunk/GSASIIpath.py


Ignore:
Timestamp:
Feb 27, 2015 9:46:37 PM (9 years ago)
Author:
toby
Message:

Ignore equivalences that are not in use; start on svn switch implementation for help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpath.py

    r1657 r1676  
    309309    sys.exit()
    310310
    311 def svnSwitchDir(rpath,URL):
     311def svnSwitchDir(rpath,URL,loadpath=None):
    312312    '''This performs a switch command to move files between subversion trees.
    313313
     
    316316   
    317317    :param str rpath: path to locate files, relative to the GSAS-II
    318       installation path (path2GSAS2)
     318      installation path (defaults to path2GSAS2)
    319319    :param str URL: the repository URL
    320320    '''
     
    322322    svn = whichsvn()
    323323    if not svn: return
    324     fpath = os.path.join(path2GSAS2,rpath)
     324    if loadpath:
     325        fpath = os.path.join(loadpath,rpath)
     326    else:
     327        fpath = os.path.join(path2GSAS2,rpath)
    325328    cmd = [svn,'switch','--ignore-ancestry',URL,fpath,
    326329           '--non-interactive',
Note: See TracChangeset for help on using the changeset viewer.