comparison hgext/relink.py @ 14709:6c7283faa967 stable

check-code: don't mark debug messages for translation
author Matt Mackall <mpm@selenic.com>
date Tue, 21 Jun 2011 15:21:57 -0500
parents 517e1d88bf7e
children 11aad09a6370
comparison
equal deleted inserted replaced
14708:8083f4d00bd1 14709:6c7283faa967
115 pos += 1 115 pos += 1
116 srcpath = os.path.join(src, fn) 116 srcpath = os.path.join(src, fn)
117 tgt = os.path.join(dst, fn) 117 tgt = os.path.join(dst, fn)
118 ts = linkfilter(srcpath, tgt, st) 118 ts = linkfilter(srcpath, tgt, st)
119 if not ts: 119 if not ts:
120 ui.debug(_('not linkable: %s\n') % fn) 120 ui.debug('not linkable: %s\n' % fn)
121 continue 121 continue
122 targets.append((fn, ts.st_size)) 122 targets.append((fn, ts.st_size))
123 ui.progress(_('pruning'), pos, fn, _('files'), total) 123 ui.progress(_('pruning'), pos, fn, _('files'), total)
124 124
125 ui.progress(_('pruning'), None) 125 ui.progress(_('pruning'), None)
157 break 157 break
158 sin = sfp.read(CHUNKLEN) 158 sin = sfp.read(CHUNKLEN)
159 sfp.close() 159 sfp.close()
160 dfp.close() 160 dfp.close()
161 if sin: 161 if sin:
162 ui.debug(_('not linkable: %s\n') % f) 162 ui.debug('not linkable: %s\n' % f)
163 continue 163 continue
164 try: 164 try:
165 relinkfile(source, tgt) 165 relinkfile(source, tgt)
166 ui.progress(_('relinking'), pos, f, _('files'), total) 166 ui.progress(_('relinking'), pos, f, _('files'), total)
167 relinked += 1 167 relinked += 1