Mercurial > hgsubversion
comparison utility_commands.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 | 4c3bad24f950 |
children | c34abd2448b7 |
comparison
equal
deleted
inserted
replaced
233:80a700398995 | 234:33e885f5f86a |
---|---|
48 else: | 48 else: |
49 branchpath = 'branches/%s' % br | 49 branchpath = 'branches/%s' % br |
50 url = hge.url | 50 url = hge.url |
51 if url[-1] == '/': | 51 if url[-1] == '/': |
52 url = url[:-1] | 52 url = url[:-1] |
53 svn = svnwrap.SubversionRepo(url) | 53 user = opts.get('username', mutil.getuser()) |
54 passwd = opts.get('passwd', '') | |
55 svn = svnwrap.SubversionRepo(url, user, passwd) | |
54 dirs = [''] + [d[0] for d in svn.list_files(branchpath, r) if d[1] == 'd'] | 56 dirs = [''] + [d[0] for d in svn.list_files(branchpath, r) if d[1] == 'd'] |
55 for dir in dirs: | 57 for dir in dirs: |
56 props = svn.list_props('%s/%s/' % (branchpath,dir), r) | 58 props = svn.list_props('%s/%s/' % (branchpath,dir), r) |
57 if 'svn:ignore' in props: | 59 if 'svn:ignore' in props: |
58 lines = props['svn:ignore'].strip().split('\n') | 60 lines = props['svn:ignore'].strip().split('\n') |