Fri, 10 Mar 2017 15:43:31 -0800 histedit: pop action after the action is completed
Durham Goode <durham@fb.com> [Fri, 10 Mar 2017 15:43:31 -0800] rev 31512
histedit: pop action after the action is completed We only want to pop the action after the action is completed, since if the action aborts part way through we want it to remain at the front of the list so continue/abort will start with it. Previously we relied on the fact that we only serialized the state file at the beginning of the action, so the pop wasn't serialized until the next iteration of the loop. In a future patch we will be adding a large transaction around this area, which means if we pop the list early it might get serialized if the action throws a user InterventionRequired error, at which point the action is not in the list anymore. So let's only pop it once the action is really truly done.
Fri, 10 Mar 2017 15:43:31 -0800 histedit: add transaction support to writing the state file
Durham Goode <durham@fb.com> [Fri, 10 Mar 2017 15:43:31 -0800] rev 31511
histedit: add transaction support to writing the state file This will be used in a future diff to enable a single transaction around an entire histedit.
Sun, 19 Mar 2017 01:11:00 -0400 localrepo: forcibly copy list of filecache keys
Augie Fackler <augie@google.com> [Sun, 19 Mar 2017 01:11:00 -0400] rev 31510
localrepo: forcibly copy list of filecache keys On Python 3, keys() is more like iterkeys(), so we got in trouble for mutating the dict while we're iterating here. Since the list of caches should be relatively small, work around this difference by just forcing a copy of the key list.
Sun, 19 Mar 2017 01:10:02 -0400 localrepo: turn hook kwargs back into strs before calling hook
Augie Fackler <augie@google.com> [Sun, 19 Mar 2017 01:10:02 -0400] rev 31509
localrepo: turn hook kwargs back into strs before calling hook It might be better to ensure that the hook kwargs dict only has str keys on Python 3. I'm torn.
Sun, 19 Mar 2017 01:08:59 -0400 localrepo: ensure transaction id is fully bytes on py3
Augie Fackler <augie@google.com> [Sun, 19 Mar 2017 01:08:59 -0400] rev 31508
localrepo: ensure transaction id is fully bytes on py3
Sun, 19 Mar 2017 01:08:17 -0400 dirstate: use future-proof next(iter) instead of iter.next
Augie Fackler <augie@google.com> [Sun, 19 Mar 2017 01:08:17 -0400] rev 31507
dirstate: use future-proof next(iter) instead of iter.next The latter has been removed in Python 3.
Sun, 19 Mar 2017 01:06:47 -0400 posix: tiptoe around tempfile module more delicately
Augie Fackler <augie@google.com> [Sun, 19 Mar 2017 01:06:47 -0400] rev 31506
posix: tiptoe around tempfile module more delicately Some of the values inside the tempfile calls here are str on Python 3, so we've got to pass str in. Use fsdecode to work around the issue.
(0) -30000 -10000 -3000 -1000 -300 -100 -30 -10 -7 +7 +10 +30 +100 +300 +1000 +3000 +10000 tip