Commit b4bc53b
Justus Pendleton
fix [SF#297014]: roundup-admin interactive tracks uncommitted state
If you make changes from roundup-admin interactive it doesn't commit them. You
have to do it yourself. It tries to be helpful and see if there is uncommitted
data but it is looking at db.transactions which won't work for RDBMS backends.
I saw a couple of options:
1. Don't have roundup-admin even try to help. You're on your own to
remember to commit. This is how it has been for RDBMS backends, we
would just remove the functionality from the others to make them
all behave the same. Not very nice, though.
2. Always commit on exit. Admins have to remember to rollback if they
don't like their changes if they don't want them. This mirrors how
it works in non-interactive mode.
3. Have the backends keep track of dirty state. This would require
duplicating code in all of the backends but would make the "dirty"
state visible to all backend users. Does anyone but roundup-admin
interactive even care, though?
4. Have roundup-admin keep track of dirty state. Quick and easy to
implement but only roundup-admin sees this state.
This patch implements #4 but it wouldn't be hard to convince me of #2 :)1 parent 45022e3 commit b4bc53b
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
642 | 643 | | |
643 | 644 | | |
644 | 645 | | |
| 646 | + | |
645 | 647 | | |
646 | 648 | | |
647 | 649 | | |
| |||
813 | 815 | | |
814 | 816 | | |
815 | 817 | | |
| 818 | + | |
816 | 819 | | |
817 | 820 | | |
818 | 821 | | |
| |||
995 | 998 | | |
996 | 999 | | |
997 | 1000 | | |
| 1001 | + | |
998 | 1002 | | |
999 | 1003 | | |
1000 | 1004 | | |
| |||
1007 | 1011 | | |
1008 | 1012 | | |
1009 | 1013 | | |
| 1014 | + | |
1010 | 1015 | | |
1011 | 1016 | | |
1012 | 1017 | | |
| |||
1030 | 1035 | | |
1031 | 1036 | | |
1032 | 1037 | | |
| 1038 | + | |
1033 | 1039 | | |
1034 | 1040 | | |
1035 | 1041 | | |
| |||
1052 | 1058 | | |
1053 | 1059 | | |
1054 | 1060 | | |
| 1061 | + | |
1055 | 1062 | | |
1056 | 1063 | | |
1057 | 1064 | | |
| |||
1216 | 1223 | | |
1217 | 1224 | | |
1218 | 1225 | | |
| 1226 | + | |
1219 | 1227 | | |
1220 | 1228 | | |
1221 | 1229 | | |
| |||
1254 | 1262 | | |
1255 | 1263 | | |
1256 | 1264 | | |
| 1265 | + | |
1257 | 1266 | | |
1258 | 1267 | | |
1259 | 1268 | | |
| |||
1424 | 1433 | | |
1425 | 1434 | | |
1426 | 1435 | | |
1427 | | - | |
| 1436 | + | |
1428 | 1437 | | |
1429 | 1438 | | |
1430 | 1439 | | |
| |||
0 commit comments