Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/HgDataFile.java @ 245:2fb439375ddc
Avoid sorting revision range twice
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 14 Jul 2011 03:18:37 +0200 |
parents | ad6a046943be |
children | 6d1804fe0ed7 |
comparison
equal
deleted
inserted
replaced
244:4b661efb9374 | 245:2fb439375ddc |
---|---|
241 if (needsSorting[0]) { | 241 if (needsSorting[0]) { |
242 // automatic tools (svnmerge?) produce unnatural file history | 242 // automatic tools (svnmerge?) produce unnatural file history |
243 // (e.g. cpython/Lib/doctest.py, revision 164 points to cset 63509, 165 - to 38453) | 243 // (e.g. cpython/Lib/doctest.py, revision 164 points to cset 63509, 165 - to 38453) |
244 Arrays.sort(commitRevisions); | 244 Arrays.sort(commitRevisions); |
245 } | 245 } |
246 changelog.range(inspector, commitRevisions); | 246 changelog.rangeInternal(inspector, commitRevisions); |
247 } | 247 } |
248 | 248 |
249 // for a given local revision of the file, find out local revision in the changelog | 249 // for a given local revision of the file, find out local revision in the changelog |
250 public int getChangesetLocalRevision(int revision) { | 250 public int getChangesetLocalRevision(int revision) { |
251 return content.linkRevision(revision); | 251 return content.linkRevision(revision); |