diff src/org/tmatesoft/hg/internal/Patch.java @ 533:e6f72c9829a6

Generate patches using diff algorithm
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 30 Jan 2013 15:48:36 +0100
parents 688c1ab113bb
children 243202f1bda5
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/Patch.java	Wed Jan 23 19:14:15 2013 +0100
+++ b/src/org/tmatesoft/hg/internal/Patch.java	Wed Jan 30 15:48:36 2013 +0100
@@ -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
@@ -24,8 +24,8 @@
  * @see http://mercurial.selenic.com/wiki/BundleFormat
  * in Changelog group description
  * 
- * range [start..end] in original source gets replaced with data of length (do not keep, use data.length instead)
- * range [end(i)..start(i+1)] is copied from the source
+ * range [start..end) in original source gets replaced with data of length (do not keep, use data.length instead)
+ * range [end(i)..start(i+1)) is copied from the source
  * 
  * @author Artem Tikhomirov
  * @author TMate Software Ltd.
@@ -159,7 +159,7 @@
 		add(p.starts.get(i), p.ends.get(i), p.data.get(i));
 	}
 
-	private void add(int start, int end, byte[] d) {
+	/*package-local*/ void add(int start, int end, byte[] d) {
 		starts.add(start);
 		ends.add(end);
 		data.add(d);