comparison src/hgaction.h @ 583:e40e3ebe9f2e fswatcher

Merge from default branch
author Chris Cannam
date Mon, 12 Mar 2012 14:58:40 +0000
parents 012ba1b83328
children ab92f695f776
comparison
equal deleted inserted replaced
547:9f91d1b2ed51 583:e40e3ebe9f2e
3 /* 3 /*
4 EasyMercurial 4 EasyMercurial
5 5
6 Based on HgExplorer by Jari Korhonen 6 Based on HgExplorer by Jari Korhonen
7 Copyright (c) 2010 Jari Korhonen 7 Copyright (c) 2010 Jari Korhonen
8 Copyright (c) 2011 Chris Cannam 8 Copyright (c) 2012 Chris Cannam
9 Copyright (c) 2011 Queen Mary, University of London 9 Copyright (c) 2012 Queen Mary, University of London
10 10
11 This program is free software; you can redistribute it and/or 11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License as 12 modify it under the terms of the GNU General Public License as
13 published by the Free Software Foundation; either version 2 of the 13 published by the Free Software Foundation; either version 2 of the
14 License, or (at your option) any later version. See the file 14 License, or (at your option) any later version. See the file
116 return true; 116 return true;
117 default: 117 default:
118 return false; 118 return false;
119 } 119 }
120 } 120 }
121
122 bool makesSenseToCancel() const {
123 switch (action) {
124 case ACT_INCOMING:
125 case ACT_PUSH:
126 case ACT_PULL:
127 case ACT_CLONEFROMREMOTE:
128 case ACT_FOLDERDIFF:
129 case ACT_CHGSETDIFF:
130 return true;
131 default:
132 return false;
133 }
134 }
121 }; 135 };
122 136
123 #endif 137 #endif