}
- public bool shouldIgnore(GitMonitor gm)
+ public bool shouldIgnore()
{
this.runQueue();
return true;
- },null,null);
+ });
}
var cmd = cmds.index(i);
var gitpath = cmd.gitpath;
- var ix = GitRepo.indexOf(repos_list, cmd.gitpath);
+ var ix = GitRepo.indexOf(repo_list, cmd.gitpath);
if (ix < 0) {
repo_list.append_val(new GitRepo( gitpath ));
ix = GitRepo.indexOf(repo_list, cmd.gitpath);
}
// if file exists, do not try and delete it.
- if (FileUtils.test(cmd.rm, FileTest.EXISTS)) {
+ if (FileUtils.test(cmd.vname, FileTest.EXISTS)) {
break;
}
//repo.debug = 1;
// these can fail... at present... as we wildcard stuff.
- stdout.printf("ADD : %d files" , add_files.length);
+ stdout.printf("ADD : %u files" , add_files.length);
// make sure added files do not get removed..
var remove_files_f = new Array<GitMonitorQueue>();
for(var ii = 0;ii < remove_files.length;ii++) {
- if (GitMonitorQueue.indexOfAdd(add_files, remove_files.index(ii).rm) > -1 ) {
+ if (GitMonitorQueue.indexOfAdd(add_files, remove_files.index(ii).vname) > -1 ) {
continue;
}
remove_files_f.append_val(remove_files.index(ii));
try {
// catch notification failures.. so we can carry on..
- if (success.length) {
+ if (success.length > 0) {
var notification = new Notify.Notification(
notification.show();
}
- if (failure.length) {
+ if (failure.length > 0) {
- var notification = new Notify.Notification({
- summary: "Git Live ERROR!!",
+ var notification = new Notify.Notification(
+ "Git Live ERROR!!",
string.joinv("\n",failure),
"dialog-information"
- });
+ );
notification.set_timeout(5); // show errros for longer
notification.show();
- public void onChanged(MonitorNamePathDir src)
+ public new void onChanged(MonitorNamePathDir src)
{
return; // always ignore this..?
//this.parsePath(src);
* results in git add + git commit..
*
*/
- public void onChangesDoneHint(MonitorNamePathDir src)
+ public new void onChangesDoneHint(MonitorNamePathDir src)
{
if (this.paused) {
- return true;
+ return;
}
this.queue.append_val(cmd);
- var cmd = new GitMonitorQueue(src);
+ cmd = new GitMonitorQueue(src);
cmd.action = "commit";
- cmd.message = src.vpath;
+ cmd.message = src.vname;
this.queue.append_val(cmd);
}
- public void onDeleted(MonitorNamePathDir src)
+ public new void onDeleted(MonitorNamePathDir src)
{
if (this.paused) {
- return true;
+ return;
}
this.lastAdd = new DateTime.now(new TimeZone.local());
var cmd = new GitMonitorQueue(src);
var cmd = new GitMonitorQueue(src);
cmd.action = "commit";
- cmd.message = src.vpath;
+ cmd.message = src.vname;
cmd.commit_all = true;
this.queue.append_val(cmd);
}
- public void onCreated(MonitorNamePathDir src) {
+ public new void onCreated(MonitorNamePathDir src) {
if (this.paused) {
- return true;
+ return;
}
this.lastAdd = new DateTime.now(new TimeZone.local());
var cmd = new GitMonitorQueue(src);
}
- public void onAttributeChanged(MonitorNamePathDir src) {
+ public new void onAttributeChanged(MonitorNamePathDir src) {
if (this.paused) {
- return true;
+ return;
}
this.lastAdd = new DateTime.now(new TimeZone.local());
var cmd = new GitMonitorQueue(src);
}
- public void onMoved(MonitorNamePathDir src,MonitorNamePathDir dest)
+ public new void onMoved(MonitorNamePathDir src,MonitorNamePathDir dest)
{
+ if (this.paused) {
+ return;
+ }
this.lastAdd = new DateTime.now(new TimeZone.local());
var cmd_s = new GitMonitorQueue(src);