changeset 540:67d4b0f73984

Include commit tests into Ant's test suite
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 13 Feb 2013 19:41:33 +0100
parents 9edfd5a223b8
children 946b13196252
files build.xml src/org/tmatesoft/hg/repo/CommitFacility.java
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build.xml	Wed Feb 13 18:44:58 2013 +0100
+++ b/build.xml	Wed Feb 13 19:41:33 2013 +0100
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
- Copyright (c) 2010-2012 TMate Software Ltd
+ Copyright (c) 2010-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
@@ -104,6 +104,7 @@
 			<test name="org.tmatesoft.hg.test.TestRevert" />
 			<test name="org.tmatesoft.hg.test.TestCheckout" />
 			<test name="org.tmatesoft.hg.test.TestAddRemove" />
+			<test name="org.tmatesoft.hg.test.TestCommit" />
 		</junit>
 	</target>
 
--- a/src/org/tmatesoft/hg/repo/CommitFacility.java	Wed Feb 13 18:44:58 2013 +0100
+++ b/src/org/tmatesoft/hg/repo/CommitFacility.java	Wed Feb 13 19:41:33 2013 +0100
@@ -141,6 +141,9 @@
 			} else {
 				contentStream = repo.createStoreFile(df.getPath());
 				newlyAddedFiles.add(df.getPath());
+				// FIXME df doesn't get df.content updated, and clients
+				// that would attempt to access newly added file after commit would fail
+				// (despite the fact the file is in there)
 			}
 			RevlogStreamWriter fileWriter = new RevlogStreamWriter(repo.getSessionContext(), contentStream);
 			Nodeid fileRev = fileWriter.addRevision(bac.toArray(), clogRevisionIndex, fp.first(), fp.second());