Changeset 509


Ignore:
Timestamp:
12/05/2009 19:52:01 (2 years ago)
Author:
ccowart
Message:

Allowing username overriding for repository access.

Fixes #115

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/confman.conf.5.in

    r506 r509  
    131131Defaults to "${HOME}/src/conf". Can be used to change the location of the 
    132132working copy. 
     133.It REPO_REMOTE_USER 
     134Defaults to "", using the underlying  
     135.Xr svn 1 
     136behavior. Use this to override the username for the repository host. 
    133137.It SINGULARITIES 
    134138Defaults to "". This is a white-space delimited list of all files that are to 
  • trunk/confman.conf.in

    r462 r509  
    3030# The directory from the root of the repository to our checkpoints: 
    3131REPO_CHECKPTS="checkpoints" 
     32 
     33# Our username on the repository host 
     34REPO_REMOTE_USER="" 
    3235 
    3336# Where to keep our "working copy" of the system: 
  • trunk/confman.conf.sample.in

    r385 r509  
    77 
    88# The hostname providing our config repository: 
    9 REPO_HOSTNAME="svn.timesinks.net" 
     9REPO_HOSTNAME="svn.example.com" 
    1010 
    1111# The path on the remote host to find the repository: 
  • trunk/confmanlib.sh.in

    r507 r509  
    4040function conf_repo_uri { 
    4141        local proto="${REPO_PROTOCOL%:/*}" 
    42         local uri 
     42        local uri user 
    4343 
    4444    # When we're running in export mode and the user has configured 
     
    6969    done 
    7070 
     71    user=${REPO_REMOTE_USER:+${REPO_REMOTE_USER}@} 
     72 
    7173        case $proto in 
    7274                file) 
     
    7476                        ;; 
    7577                *) 
    76                         uri="${REPO_PROTOCOL}${REPO_HOSTNAME}${REPO_PATH}" 
     78                        uri="${REPO_PROTOCOL}${user}${REPO_HOSTNAME}${REPO_PATH}" 
    7779                        ;; 
    7880        esac 
Note: See TracChangeset for help on using the changeset viewer.