diff -r 2a4a0dc4fb85 -r 1de5ebfa5585 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu Oct 29 19:03:13 2009 -0500 +++ b/mercurial/cmdutil.py Thu Oct 29 19:03:16 2009 -0500 @@ -1031,7 +1031,7 @@ if df(d[0]): results[rev] = d - for ctx in walkchangerevs(ui, repo, m, {'rev':None}, prep): + for ctx in walkchangerevs(repo, m, {'rev':None}, prep): rev = ctx.rev() if rev in results: ui.status(_("Found revision %s from %s\n") % @@ -1040,7 +1040,7 @@ raise util.Abort(_("revision matching date not found")) -def walkchangerevs(ui, repo, match, opts, prepare): +def walkchangerevs(repo, match, opts, prepare): '''Iterate over files and the revs in which they changed. Callers most commonly need to iterate backwards over the history @@ -1088,6 +1088,7 @@ # No files, no patterns. Display all revs. wanted = set(revs) copies = [] + if not slowpath: # Only files, no patterns. Check the history of each file. def filerevgen(filelog, node): @@ -1124,8 +1125,6 @@ slowpath = True break else: - ui.warn(_('%s:%s copy source revision cannot be found!\n') - % (file_, short(node))) continue for rev, copied in filerevgen(filelog, node): if rev <= maxrev: