Mercurial > jhg
diff src/org/tmatesoft/hg/repo/HgLookup.java @ 186:44a34baabea0
Clone refactored into a command. HgBundle needs means to control its lifecycle, to be deleted when no longer needed
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> | 
|---|---|
| date | Thu, 14 Apr 2011 00:47:04 +0200 | 
| parents | cd3371670f0b | 
| children | 41a778e3fd31 | 
line wrap: on
 line diff
--- a/src/org/tmatesoft/hg/repo/HgLookup.java Wed Apr 13 19:55:59 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgLookup.java Thu Apr 14 00:47:04 2011 +0200 @@ -74,7 +74,7 @@ if (location == null || !location.canRead()) { throw new IllegalArgumentException(); } - return new HgBundle(new DataAccessProvider(), location); + return new HgBundle(new DataAccessProvider(), location).link(); } /**
