depthcache: update the variable tracking on disk state after write
Since we updated the on disk content, we should update that value.
In practice the object will likely be discarded after the write, but there is
nothing wrong in being more correct.
Thistestfiletestthevariousmessageswhenaccessingobsoleterevisions.Globalsetup============$.$TESTDIR/testlib/obshistory_setup.shTestoutputwithprunedcommit==============================Checkoutputontheclientside-------------------------------$hginit$TESTTMP/local-prune$hginit$TESTTMP/server$cd$TESTTMP/local-prune$mkcommitROOT$mkcommitA0#0$mkcommitB0#1$sync$hglog--hidden-G@changeset:2:0dec01379d3b|tag:tip|user:test|date:ThuJan0100:00:001970+0000|summary:B0|ochangeset:1:471f378eab4c|user:test|date:ThuJan0100:00:001970+0000|summary:A0|ochangeset:0:ea207398892euser:testdate:ThuJan0100:00:001970+0000summary:ROOT$hgprune-r'desc(B0)'0filesupdated,0filesmerged,1filesremoved,0filesunresolvedworkingdirectorynowat471f378eab4c1changesetspruned$sync$hglog--hidden-Gxchangeset:2:0dec01379d3b|tag:tip|user:test|date:ThuJan0100:00:001970+0000|obsolete:prunedusingprune|summary:B0|@changeset:1:471f378eab4c|user:test|date:ThuJan0100:00:001970+0000|summary:A0|ochangeset:0:ea207398892euser:testdate:ThuJan0100:00:001970+0000summary:ROOTActualtest-----------$hgobslog'desc(B0)'--hidden--patchx0dec01379d3b(2)B0prunedusingprunebytest(ThuJan0100:00:001970+0000)(Nopatchavailable,nosuccessors)$hgobslog'desc(B0)'--hidden--no-graph-Tjson|python-mjson.tool[{"markers":[{"date":[*,(glob)0(glob)],"operation":"prune","user":"test","verb":"pruned"}],"node":"0dec01379d3b","rev":2,"shortdescription":"B0"}]$hgobslog'desc(A0)'--patch@471f378eab4c(1)A0$hgobslog'desc(A0)'--no-graph-Tjson|python-mjson.tool[{"markers":[],"node":"471f378eab4c","rev":1,"shortdescription":"A0"}]$hgup10filesupdated,0filesmerged,0filesremoved,0filesunresolved$hgup0dec01379d3babort:hiddenrevision'0dec01379d3b'ispruned!(use--hiddentoaccesshiddenrevisions)[255]$hgup--hidden-r'desc(B0)'1filesupdated,0filesmerged,0filesremoved,0filesunresolvedupdatedtohiddenchangeset0dec01379d3b(hiddenrevision'0dec01379d3b'ispruned)workingdirectoryparentisobsolete!(0dec01379d3b)(use'hg evolve'toupdatetoitsparentsuccessor)Checkoutputontheserverside-------------------------------$hgobslog-f-R$TESTTMP/server--patch0dec01379d3b--hiddenx0dec01379d3b(2)B0prunedusingprunebytest(atThuJan0100:00:001970+0000)(Nopatchavailable,nosuccessors)# TODO ADD amend + prune