Return-Path: Mailing-List: contact gump-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list gump@jakarta.apache.org Received: (qmail 24947 invoked by uid 500); 9 May 2003 10:39:43 -0000 Received: (qmail 24918 invoked from network); 9 May 2003 10:39:43 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 9 May 2003 10:39:43 -0000 Received: (qmail 76922 invoked by uid 1464); 9 May 2003 10:39:43 -0000 Date: 9 May 2003 10:39:43 -0000 Message-ID: <20030509103943.76921.qmail@icarus.apache.org> From: nicolaken@apache.org To: jakarta-gump-cvs@apache.org Subject: cvs commit: jakarta-gump/python/gump update.py X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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])