comparison mercurial/commands.py @ 3900:2b3175acb653

Don't use node length for calculating revision number length. Done by moving repo.lookup of revisions from commands.export to patch.export
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 15 Dec 2006 19:30:20 +0100
parents 6081b4c68baf
children 0d27502a804c 283ee8971570
comparison
equal deleted inserted replaced
3899:504dee0abeac 3900:2b3175acb653
1064 revs = cmdutil.revrange(repo, changesets) 1064 revs = cmdutil.revrange(repo, changesets)
1065 if len(revs) > 1: 1065 if len(revs) > 1:
1066 ui.note(_('exporting patches:\n')) 1066 ui.note(_('exporting patches:\n'))
1067 else: 1067 else:
1068 ui.note(_('exporting patch:\n')) 1068 ui.note(_('exporting patch:\n'))
1069 patch.export(repo, map(repo.lookup, revs), template=opts['output'], 1069 patch.export(repo, revs, template=opts['output'],
1070 switch_parent=opts['switch_parent'], 1070 switch_parent=opts['switch_parent'],
1071 opts=patch.diffopts(ui, opts)) 1071 opts=patch.diffopts(ui, opts))
1072 1072
1073 def grep(ui, repo, pattern, *pats, **opts): 1073 def grep(ui, repo, pattern, *pats, **opts):
1074 """search for a pattern in specified files and revisions 1074 """search for a pattern in specified files and revisions