Mercurial > hg
comparison hgext/convert/convcmd.py @ 11731:87dcf758309d stable
convert/progress: use plural and avoid retrieving
author | timeless <timeless@gmail.com> |
---|---|
date | Fri, 30 Jul 2010 10:38:54 +0300 |
parents | ecc8b18736da |
children | 0c67a58f0580 |
comparison
equal
deleted
inserted
replaced
11727:c34a1ab80550 | 11731:87dcf758309d |
---|---|
79 self.filecount = filecount | 79 self.filecount = filecount |
80 self.retrieved = 0 | 80 self.retrieved = 0 |
81 | 81 |
82 def getfile(self, file, rev): | 82 def getfile(self, file, rev): |
83 self.retrieved += 1 | 83 self.retrieved += 1 |
84 self.ui.progress(_('retrieving file'), self.retrieved, | 84 self.ui.progress(_('getting files'), self.retrieved, |
85 item=file, total=self.filecount) | 85 item=file, total=self.filecount) |
86 return self.source.getfile(file, rev) | 86 return self.source.getfile(file, rev) |
87 | 87 |
88 def lookuprev(self, rev): | 88 def lookuprev(self, rev): |
89 return self.source.lookuprev(rev) | 89 return self.source.lookuprev(rev) |
90 | 90 |
91 def close(self): | 91 def close(self): |
92 self.ui.progress(_('retrieving file'), None) | 92 self.ui.progress(_('getting files'), None) |
93 | 93 |
94 class converter(object): | 94 class converter(object): |
95 def __init__(self, ui, source, dest, revmapfile, opts): | 95 def __init__(self, ui, source, dest, revmapfile, opts): |
96 | 96 |
97 self.source = source | 97 self.source = source |