comparison hgext/convert/darcs.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 02d6149a480b
children 33010ff1fd6f
comparison
equal deleted inserted replaced
10938:02d6149a480b 10939:9f6731b03906
32 commandline.__init__(self, ui, 'darcs') 32 commandline.__init__(self, ui, 'darcs')
33 33
34 # check for _darcs, ElementTree, _darcs/inventory so that we can 34 # check for _darcs, ElementTree, _darcs/inventory so that we can
35 # easily skip test-convert-darcs if ElementTree is not around 35 # easily skip test-convert-darcs if ElementTree is not around
36 if not os.path.exists(os.path.join(path, '_darcs', 'inventories')): 36 if not os.path.exists(os.path.join(path, '_darcs', 'inventories')):
37 raise NoRepo("%s does not look like a darcs repository" % path) 37 raise NoRepo(_("%s does not look like a darcs repository") % path)
38 38
39 if not os.path.exists(os.path.join(path, '_darcs')): 39 if not os.path.exists(os.path.join(path, '_darcs')):
40 raise NoRepo("%s does not look like a darcs repository" % path) 40 raise NoRepo(_("%s does not look like a darcs repository") % path)
41 41
42 checktool('darcs') 42 checktool('darcs')
43 version = self.run0('--version').splitlines()[0].strip() 43 version = self.run0('--version').splitlines()[0].strip()
44 if version < '2.1': 44 if version < '2.1':
45 raise util.Abort(_('darcs version 2.1 or newer needed (found %r)') % 45 raise util.Abort(_('darcs version 2.1 or newer needed (found %r)') %