diff src/org/tmatesoft/hg/internal/ManifestRevision.java @ 704:7743a9c10bfa

Merge command introduced
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 14 Aug 2013 20:07:26 +0200
parents dd4f6311af52
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/ManifestRevision.java	Wed Aug 14 14:51:51 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/ManifestRevision.java	Wed Aug 14 20:07:26 2013 +0200
@@ -23,6 +23,7 @@
 
 import org.tmatesoft.hg.core.Nodeid;
 import org.tmatesoft.hg.repo.HgManifest;
+import org.tmatesoft.hg.repo.HgRepository;
 import org.tmatesoft.hg.util.Convertor;
 import org.tmatesoft.hg.util.Path;
 
@@ -50,9 +51,18 @@
 		flagsMap = new TreeMap<Path, HgManifest.Flags>();
 	}
 	
+	public ManifestRevision init(HgRepository hgRepo, int csetIndex) {
+		hgRepo.getManifest().walk(csetIndex, csetIndex, this);
+		return this;
+	}
+	
 	public Collection<Path> files() {
 		return idsMap.keySet();
 	}
+	
+	public boolean contains(Path file) {
+		return idsMap.containsKey(file);
+	}
 
 	public Nodeid nodeid(Path fname) {
 		return idsMap.get(fname);