From: Zygo Blaxell Date: Wed, 6 Jan 2010 16:57:42 +0000 (-0500) Subject: dupemerge: sort incumbent inodes too X-Git-Tag: dm6-0.20100514~29 X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=dupemerge;a=commitdiff_plain;h=7b251f6413738a3fef1a97ff6e74137460e03292 dupemerge: sort incumbent inodes too --- diff --git a/faster-dupemerge b/faster-dupemerge index 5069297..8df7885 100755 --- a/faster-dupemerge +++ b/faster-dupemerge @@ -335,7 +335,7 @@ hash_file: my $incumbent_list = ($hash_to_inode{$digest} ||= []); my $incumbent_matched = 0; - for my $incumbent (@$incumbent_list) { + for my $incumbent (sort @$incumbent_list) { print STDERR "\t\tInodes $incumbent and $candidate have same hash\n" if $debug; my $finished = 0;