diff test/org/tmatesoft/hg/test/Configuration.java @ 623:fedc54356091

Update tests for Windows; TestCommit: use copy of a repo (not clone) to preserve old timestamps
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 20 May 2013 18:35:13 +0200
parents b015f3918120
children a483b2b68a2e
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/Configuration.java	Mon May 20 16:56:40 2013 +0200
+++ b/test/org/tmatesoft/hg/test/Configuration.java	Mon May 20 18:35:13 2013 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2012 TMate Software Ltd
+ * Copyright (c) 2011-2013 TMate Software Ltd
  *  
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,6 +23,7 @@
 import java.util.Arrays;
 import java.util.List;
 
+import org.tmatesoft.hg.core.HgException;
 import org.tmatesoft.hg.repo.HgLookup;
 import org.tmatesoft.hg.repo.HgRemoteRepository;
 import org.tmatesoft.hg.repo.HgRepository;
@@ -67,7 +68,7 @@
 	}
 
 	// fails if repo not found
-	public HgRepository find(String key) throws Exception {
+	public HgRepository find(String key) throws HgException {
 		HgRepository rv = lookup.detect(new File(getRoot(), key));
 		assertNotNull(rv);
 		assertFalse(rv.isInvalid());