comparison rebuildmeta.py @ 234:33e885f5f86a

Add --username and --password options to all commands
author Daniel Tang <dytang@cs.purdue.edu>
date Mon, 06 Apr 2009 02:52:14 -0400
parents f71af18c4379
children
comparison
equal deleted inserted replaced
233:80a700398995 234:33e885f5f86a
12 """ 12 """
13 if len(args) != 1: 13 if len(args) != 1:
14 raise mutil.Abort('You must pass the svn URI used to create this repo.') 14 raise mutil.Abort('You must pass the svn URI used to create this repo.')
15 uuid = None 15 uuid = None
16 url = args[0].rstrip('/') 16 url = args[0].rstrip('/')
17 svn = svnwrap.SubversionRepo(url=url) 17 user = opts.get('username', mutil.getuser())
18 passwd = opts.get('password', '')
19 svn = svnwrap.SubversionRepo(url, user, passwd)
18 subdir = svn.subdir 20 subdir = svn.subdir
19 svnmetadir = os.path.join(repo.path, 'svn') 21 svnmetadir = os.path.join(repo.path, 'svn')
20 if not os.path.exists(svnmetadir): 22 if not os.path.exists(svnmetadir):
21 os.makedirs(svnmetadir) 23 os.makedirs(svnmetadir)
22 24