this.total = tr.length;
+ this.has_error = 0;
for (var i= 0; i< tr.length;i++) {
statusicon.set_from_stock(
//this.ref();
statusicon.set_tooltip_text("pull: " + repo.name);
-
+
repo.pull_async(this.pullAllCallback);
// do not care if it's already in sycn..
}
uint total = 0;
-
+ unit has_error = 0;
- void pullAllCallback(GitRepo repo, string res)
+ void pullAllCallback(GitRepo repo, int err, string res)
{
this.total--;
+
+ if (err > 0) {
+
+
+ }
+
if (!Regex.match_simple ("Already up-to-date", res) ) {
-
-
- ret_str += ret_str.length > 0 ? "\n" : "";
- ret_str += "Updated: " +repo.name + "\n" + res +"\n";
- }
- if (this.total < 1) {
- var notification = new Notify.Notification(
+ var notification = new Notify.Notification(
"Pull completed ",
- ret_str,
+ "Updated: " +repo.name + "\n" + res +"\n",
"dialog-information"
);
notification.set_timeout(20);
notification.show();
+
+
+
+ }
+ if (this.total < 1) {
+
statusicon.set_tooltip_text("Gitlive");
-
-
+
GitMonitor.gitmonitor.start();
//this.unref();
//repo.unref();