gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: jakarta-gump/python/gump update.py
Date Fri, 09 May 2003 10:39:43 GMT
nicolaken    2003/05/09 03:39:43

  Modified:    python/gump update.py
  Log:
  Made the update method taka a workspace as a parmeter so
  other modules can pass it the already-resolved workspace
  
  Revision  Changes    Path
  1.6       +6 -6      jakarta-gump/python/gump/update.py
  
  Index: update.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/update.py,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- update.py	9 May 2003 10:37:58 -0000	1.5
  +++ update.py	9 May 2003 10:39:43 -0000	1.6
  @@ -91,7 +91,7 @@
   def mangle(passwd):
     return 'A' +''.join(map(chr,[shifts[ord(c)] for c in str(passwd or '')]))
   
  -def update(workspace_path, project_name = 'all'):
  +def update(workspace, project_name = 'all'):
     # read the list of cvs repositories that the user is already logged into
     password={}
     cvspassfile=os.path.expanduser(os.path.join('~','.cvspass'))
  @@ -103,9 +103,6 @@
     except:
       pass
     
  -  # load the workspace
  -  workspace=load(workspace_path)
  -
     # determine which modules the user desires (wildcards are permitted)
     selected=project_name
   
  @@ -168,5 +165,8 @@
   if __name__=='__main__':
   
     args = handleArgv(sys.argv)
  -
  -  update(args[0], args[1])
  +  
  +  # load the workspace
  +  workspace=load(args[0])
  +  
  +  update(workspace, args[1])
  
  
  

Mime
View raw message