Mercurial > hg4j
diff src/org/tmatesoft/hg/core/Cset.java @ 93:d55d4eedfc57
Switch to Path instead of String in filenames returned by various status operations
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 27 Jan 2011 21:15:21 +0100 |
parents | 25f2e5d1cd8b |
children | af1f3b78b918 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/Cset.java Thu Jan 27 06:31:58 2011 +0100 +++ b/src/org/tmatesoft/hg/core/Cset.java Thu Jan 27 21:15:21 2011 +0100 @@ -135,24 +135,22 @@ StatusCollector.Record r = new StatusCollector.Record(); statusHelper.change(revNumber, r); final HgRepository repo = statusHelper.getRepo(); - for (String s : r.getModified()) { - Path p = pathHelper.path(s); + for (Path s : r.getModified()) { Nodeid nid = r.nodeidAfterChange(s); if (nid == null) { throw new IllegalArgumentException(); } - modified.add(new FileRevision(repo, nid, p)); + modified.add(new FileRevision(repo, nid, s)); } - for (String s : r.getAdded()) { - Path p = pathHelper.path(s); + for (Path s : r.getAdded()) { Nodeid nid = r.nodeidAfterChange(s); if (nid == null) { throw new IllegalArgumentException(); } - added.add(new FileRevision(repo, nid, p)); + added.add(new FileRevision(repo, nid, s)); } - for (String s : r.getRemoved()) { - deleted.add(pathHelper.path(s)); + for (Path s : r.getRemoved()) { + deleted.add(s); } modified.trimToSize(); added.trimToSize();