comparison mercurial/cmdutil.py @ 7404:07cb58b8c843

Improved error message for log --follow Mads Kiilerich notes that the existing message was unclear when a nonexistent file was supplied.
author Brendan Cully <brendan@kublai.com>
date Mon, 24 Nov 2008 17:16:39 -0800
parents 87158be081b8
children 9a1ea6587557
comparison
equal deleted inserted replaced
7403:9efd596e4393 7404:07cb58b8c843
1031 filelog = repo.file(file_) 1031 filelog = repo.file(file_)
1032 if not len(filelog): 1032 if not len(filelog):
1033 if node is None: 1033 if node is None:
1034 # A zero count may be a directory or deleted file, so 1034 # A zero count may be a directory or deleted file, so
1035 # try to find matching entries on the slow path. 1035 # try to find matching entries on the slow path.
1036 if follow:
1037 raise util.Abort(_('cannot follow nonexistent file: "%s"') % file_)
1036 slowpath = True 1038 slowpath = True
1037 break 1039 break
1038 else: 1040 else:
1039 ui.warn(_('%s:%s copy source revision cannot be found!\n') 1041 ui.warn(_('%s:%s copy source revision cannot be found!\n')
1040 % (file_, short(node))) 1042 % (file_, short(node)))