Mercurial > hgsubversion
comparison utility_commands.py @ 226:bb2b78f9f4ce
Use a reverse lookup in authormap to determine the author for 'hg svn info'.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Fri, 27 Mar 2009 02:59:42 +0100 |
parents | a421aca2b0f5 |
children | f71af18c4379 |
comparison
equal
deleted
inserted
replaced
225:2117cb0118fe | 226:bb2b78f9f4ce |
---|---|
83 branchpath = '/branches/%s' % br | 83 branchpath = '/branches/%s' % br |
84 url = hge.url | 84 url = hge.url |
85 if url[-1] == '/': | 85 if url[-1] == '/': |
86 url = url[:-1] | 86 url = url[:-1] |
87 url = '%s%s' % (url, branchpath) | 87 url = '%s%s' % (url, branchpath) |
88 author = '@'.join(parent.user().split('@')[:-1]) | 88 author = hge.svnauthorforauthor(parent.user()) |
89 # cleverly figure out repo root w/o actually contacting the server | 89 # cleverly figure out repo root w/o actually contacting the server |
90 reporoot = url[:len(url)-len(subdir)] | 90 reporoot = url[:len(url)-len(subdir)] |
91 ui.status('''URL: %(url)s | 91 ui.status('''URL: %(url)s |
92 Repository Root: %(reporoot)s | 92 Repository Root: %(reporoot)s |
93 Repository UUID: %(uuid)s | 93 Repository UUID: %(uuid)s |