equal
deleted
inserted
replaced
113 hg churn -f '%Y' -s |
113 hg churn -f '%Y' -s |
114 |
114 |
115 It is possible to map alternate email addresses to a main address |
115 It is possible to map alternate email addresses to a main address |
116 by providing a file using the following format:: |
116 by providing a file using the following format:: |
117 |
117 |
118 <alias email> <actual email> |
118 <alias email> = <actual email> |
119 |
119 |
120 Such a file may be specified with the --aliases option, otherwise |
120 Such a file may be specified with the --aliases option, otherwise |
121 a .hgchurn file will be looked for in the working directory root. |
121 a .hgchurn file will be looked for in the working directory root. |
122 ''' |
122 ''' |
123 def pad(s, l): |
123 def pad(s, l): |
127 aliases = opts.get('aliases') |
127 aliases = opts.get('aliases') |
128 if not aliases and os.path.exists(repo.wjoin('.hgchurn')): |
128 if not aliases and os.path.exists(repo.wjoin('.hgchurn')): |
129 aliases = repo.wjoin('.hgchurn') |
129 aliases = repo.wjoin('.hgchurn') |
130 if aliases: |
130 if aliases: |
131 for l in open(aliases, "r"): |
131 for l in open(aliases, "r"): |
132 l = l.strip() |
132 alias, actual = l.split('=' in l and '=' or None, 1) |
133 alias, actual = l.split() |
133 amap[alias.strip()] = actual.strip() |
134 amap[alias] = actual |
|
135 |
134 |
136 rate = countrate(ui, repo, amap, *pats, **opts).items() |
135 rate = countrate(ui, repo, amap, *pats, **opts).items() |
137 if not rate: |
136 if not rate: |
138 return |
137 return |
139 |
138 |