comparison fetch_command.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 7f20914e52e8
children c90cfa665b81
comparison
equal deleted inserted replaced
233:80a700398995 234:33e885f5f86a
39 ' a slower method that may be buggier. Please upgrade, or' 39 ' a slower method that may be buggier. Please upgrade, or'
40 ' contribute a patch to use the ctypes bindings instead' 40 ' contribute a patch to use the ctypes bindings instead'
41 ' of SWIG.\n') 41 ' of SWIG.\n')
42 have_replay = False 42 have_replay = False
43 initializing_repo = False 43 initializing_repo = False
44 svn = svnwrap.SubversionRepo(svn_url, username=merc_util.getuser()) 44 user = opts.get('username', merc_util.getuser())
45 passwd = opts.get('password', '')
46 svn = svnwrap.SubversionRepo(svn_url, user, passwd)
45 author_host = "@%s" % svn.uuid 47 author_host = "@%s" % svn.uuid
46 tag_locations = tag_locations.split(',') 48 tag_locations = tag_locations.split(',')
47 hg_editor = hg_delta_editor.HgChangeReceiver(hg_repo_path, 49 hg_editor = hg_delta_editor.HgChangeReceiver(hg_repo_path,
48 ui_=ui, 50 ui_=ui,
49 subdir=svn.subdir, 51 subdir=svn.subdir,