Mercurial > hg > easyhg
comparison hgaction.h @ 110:0f039d3cc38e
* Separate out the hgrunner output into stdout and stderr again (merging them was a failed experiment)
| author | Chris Cannam |
|---|---|
| date | Fri, 26 Nov 2010 14:50:10 +0000 |
| parents | 1721c580c10e |
| children | 5fc7b4fc77a8 |
comparison
equal
deleted
inserted
replaced
| 109:1721c580c10e | 110:0f039d3cc38e |
|---|---|
| 63 | 63 |
| 64 HgAction() : action(ACT_NONE) { } | 64 HgAction() : action(ACT_NONE) { } |
| 65 | 65 |
| 66 HgAction(HGACTIONS _action, QString _wd, QStringList _params) : | 66 HgAction(HGACTIONS _action, QString _wd, QStringList _params) : |
| 67 action(_action), workingDir(_wd), params(_params) { } | 67 action(_action), workingDir(_wd), params(_params) { } |
| 68 /* | |
| 69 HgAction(const HgAction &a) : | |
| 70 action(a.action), workingDir(a.workingDir), | |
| 71 params(a.params), executable(a.executable) { } | |
| 72 | 68 |
| 73 HgAction &operator=(const HgAction &a) { | |
| 74 if (&a != this) { | |
| 75 action = a.action; | |
| 76 workingDir = a.workingDir; | |
| 77 params = a.params; | |
| 78 executable = a.executable; | |
| 79 } | |
| 80 return *this; | |
| 81 } | |
| 82 */ | |
| 83 bool operator==(const HgAction &a) { | 69 bool operator==(const HgAction &a) { |
| 84 return (a.action == action && a.workingDir == workingDir && | 70 return (a.action == action && a.workingDir == workingDir && |
| 85 a.params == params && a.executable == executable); | 71 a.params == params && a.executable == executable); |
| 86 } | 72 } |
| 87 | 73 |
| 89 switch (action) { | 75 switch (action) { |
| 90 case ACT_INCOMING: | 76 case ACT_INCOMING: |
| 91 case ACT_PUSH: | 77 case ACT_PUSH: |
| 92 case ACT_PULL: | 78 case ACT_PULL: |
| 93 case ACT_CLONEFROMREMOTE: | 79 case ACT_CLONEFROMREMOTE: |
| 80 case ACT_FILEDIFF: | |
| 81 case ACT_FOLDERDIFF: | |
| 82 case ACT_CHGSETDIFF: | |
| 83 case ACT_SERVE: | |
| 94 return true; | 84 return true; |
| 95 default: | 85 default: |
| 96 return false; | 86 return false; |
| 97 } | 87 } |
| 98 } | 88 } |
