comparison utility_commands.py @ 265:9f0738587f94

Re-re-refix username support, add a comment so maybe I remember this time.
author Augie Fackler <durin42@gmail.com>
date Mon, 13 Apr 2009 21:12:33 -0500
parents 112d57bb736e
children 1d48d9a34c19
comparison
equal deleted inserted replaced
264:112d57bb736e 265:9f0738587f94
34 else: 34 else:
35 branchpath = 'branches/%s' % br 35 branchpath = 'branches/%s' % br
36 url = hge.url 36 url = hge.url
37 if url[-1] == '/': 37 if url[-1] == '/':
38 url = url[:-1] 38 url = url[:-1]
39 user = opts.get('username', hgutil.getuser()) 39 user, passwd = util.getuserpass(opts)
40 passwd = opts.get('passwd', '')
41 svn = svnwrap.SubversionRepo(url, user, passwd) 40 svn = svnwrap.SubversionRepo(url, user, passwd)
42 dirs = [''] + [d[0] for d in svn.list_files(branchpath, r) if d[1] == 'd'] 41 dirs = [''] + [d[0] for d in svn.list_files(branchpath, r) if d[1] == 'd']
43 for dir in dirs: 42 for dir in dirs:
44 props = svn.list_props('%s/%s/' % (branchpath,dir), r) 43 props = svn.list_props('%s/%s/' % (branchpath,dir), r)
45 if 'svn:ignore' in props: 44 if 'svn:ignore' in props: