diff src/org/tmatesoft/hg/internal/CommitFacility.java @ 610:5c68567b3645

Refresh tags, branches, bookmarks and ignore when their files (or csets in the repo) are changed
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 09 May 2013 21:06:48 +0200
parents 66f1cc23b906
children dca70c0b1f74
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/CommitFacility.java	Wed May 08 17:11:45 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/CommitFacility.java	Thu May 09 21:06:48 2013 +0200
@@ -192,7 +192,7 @@
 				fncache.write();
 			} catch (IOException ex) {
 				// see comment above for fnchache.read()
-				repo.getSessionContext().getLog().dump(getClass(), Severity.Error, ex, "Failed to write fncache, error ignored");
+				repo.getLog().dump(getClass(), Severity.Error, ex, "Failed to write fncache, error ignored");
 			}
 		}
 		// bring dirstate up to commit state
@@ -210,6 +210,9 @@
 		if (p1Commit != NO_REVISION || p2Commit != NO_REVISION) {
 			repo.getRepo().getBookmarks().updateActive(p1Cset, p2Cset, changesetRev);
 		}
+		// TODO Revisit: might be reasonable to send out a "Repo changed" notification, to clear
+		// e.g. cached branch, tags and so on, not to rely on file change detection methods?
+		// The same notificaion might come useful once Pull is implemented
 		return changesetRev;
 	}
 /*