[gnome-ostree] bdiff: Update for internal VCS API change, fix git log computation
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] bdiff: Update for internal VCS API change, fix git log computation
- Date: Fri, 15 Mar 2013 15:04:42 +0000 (UTC)
commit cb4e409695b811e0feb06d14db582a1769ed8540
Author: Colin Walters <walters verbum org>
Date: Fri Mar 15 11:04:20 2013 -0400
bdiff: Update for internal VCS API change, fix git log computation
src/js/tasks/task-bdiff.js | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/js/tasks/task-bdiff.js b/src/js/tasks/task-bdiff.js
index a42303c..adba8d6 100644
--- a/src/js/tasks/task-bdiff.js
+++ b/src/js/tasks/task-bdiff.js
@@ -43,7 +43,7 @@ const TaskBdiff = new Lang.Class({
_gitLogToJson: function(repoDir, specification) {
let log = ProcUtil.runSyncGetOutputLines(['git', 'log', '--format=email', specification],
null,
- { cwd: repoDir });
+ { cwd: repoDir, logInitiation: true });
let r = [];
if (log.length == 0)
return r;
@@ -70,6 +70,9 @@ const TaskBdiff = new Lang.Class({
}
}
}
+ if (currentItem !== null) {
+ r.push(currentItem);
+ }
return r;
},
@@ -134,8 +137,7 @@ const TaskBdiff = new Lang.Class({
let previousComponent = previousBuildSnapshot.getComponent(componentName);
let latestRevision = latestComponent.revision;
let previousRevision = previousComponent.revision;
- let [keytype, uri, branchOrTag] = latestBuildSnapshot.getVcsInfo(componentName);
- let mirrordir = Vcs.getMirrordir(this.mirrordir, keytype, uri);
+ let mirrordir = Vcs.ensureVcsMirror(this.mirrordir, previousComponent, cancellable);
let gitlog = this._gitLogToJson(mirrordir, previousRevision + '...' + latestRevision);
let diffstat = this._diffstat(mirrordir, previousRevision + '..' + latestRevision);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]