comparison hgaction.h @ 289:37f67999b661

We can provide a better interface for most common cases by essentially showing a formatted log for the summary rather than a diff only
author Chris Cannam
date Mon, 21 Feb 2011 12:15:04 +0000
parents ca6edd303c9d
children 5b4aa1c24407
comparison
equal deleted inserted replaced
288:ca6edd303c9d 289:37f67999b661
61 { 61 {
62 HGACTIONS action; 62 HGACTIONS action;
63 QString workingDir; 63 QString workingDir;
64 QStringList params; 64 QStringList params;
65 QString executable; // empty for normal Hg, but gets filled in by hgrunner 65 QString executable; // empty for normal Hg, but gets filled in by hgrunner
66 void *extraData;
66 67
67 HgAction() : action(ACT_NONE) { } 68 HgAction() : action(ACT_NONE) { }
68 69
69 HgAction(HGACTIONS _action, QString _wd, QStringList _params) : 70 HgAction(HGACTIONS _action, QString _wd, QStringList _params) :
70 action(_action), workingDir(_wd), params(_params) { } 71 action(_action), workingDir(_wd), params(_params), extraData(0) { }
72
73 HgAction(HGACTIONS _action, QString _wd, QStringList _params, void *_d) :
74 action(_action), workingDir(_wd), params(_params), extraData(_d) { }
71 75
72 bool operator==(const HgAction &a) { 76 bool operator==(const HgAction &a) {
73 return (a.action == action && a.workingDir == workingDir && 77 return (a.action == action && a.workingDir == workingDir &&
74 a.params == params && a.executable == executable); 78 a.params == params && a.executable == executable &&
79 a.extraData == extraData);
75 } 80 }
76 81
77 bool shouldBeFast() const { 82 bool shouldBeFast() const {
78 switch (action) { 83 switch (action) {
79 case ACT_NONE: 84 case ACT_NONE: