Mercurial > hg
comparison hgext/convert/cvsps.py @ 10939:9f6731b03906 stable
convert: mark strings for translation
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 18 Apr 2010 15:47:49 +0200 |
parents | 35893dcfd40c |
children | 278d45703ac2 |
comparison
equal
deleted
inserted
replaced
10938:02d6149a480b | 10939:9f6731b03906 |
---|---|
127 prefix = open(os.path.join('CVS','Repository')).read().strip() | 127 prefix = open(os.path.join('CVS','Repository')).read().strip() |
128 directory = prefix | 128 directory = prefix |
129 if prefix == ".": | 129 if prefix == ".": |
130 prefix = "" | 130 prefix = "" |
131 except IOError: | 131 except IOError: |
132 raise logerror('Not a CVS sandbox') | 132 raise logerror(_('not a CVS sandbox')) |
133 | 133 |
134 if prefix and not prefix.endswith(os.sep): | 134 if prefix and not prefix.endswith(os.sep): |
135 prefix += os.sep | 135 prefix += os.sep |
136 | 136 |
137 # Use the Root file in the sandbox, if it exists | 137 # Use the Root file in the sandbox, if it exists |
433 if log: | 433 if log: |
434 # join up the old and new logs | 434 # join up the old and new logs |
435 log.sort(key=lambda x: x.date) | 435 log.sort(key=lambda x: x.date) |
436 | 436 |
437 if oldlog and oldlog[-1].date >= log[0].date: | 437 if oldlog and oldlog[-1].date >= log[0].date: |
438 raise logerror('Log cache overlaps with new log entries,' | 438 raise logerror(_('log cache overlaps with new log entries,' |
439 ' re-run without cache.') | 439 ' re-run without cache.')) |
440 | 440 |
441 log = oldlog + log | 441 log = oldlog + log |
442 | 442 |
443 # write the new cachefile | 443 # write the new cachefile |
444 ui.note(_('writing cvs log cache %s\n') % cachefile) | 444 ui.note(_('writing cvs log cache %s\n') % cachefile) |