changeset 1424:a794cbc174a9

maps: document RevMap.batchset will not update internal state Judging from the name, RevMap.batchset seems to be equivalent to multiple "__setitem__"s. But it neither calls dict.__setitem__ nor updates "_hashes". Update the docstring to make it clear the in-memory state is not updated.
author Jun Wu <quark@fb.com>
date Tue, 24 May 2016 00:11:50 +0100
parents 52749d8aba99
children 56a872cba351
files hgsubversion/maps.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/maps.py
+++ b/hgsubversion/maps.py
@@ -384,8 +384,8 @@ class RevMap(dict):
 
         items is an array of (rev num, branch, binary hash)
 
-        For performance reason, meta.lastpulled and meta.firstpulled
-        are not updated.
+        For performance reason, internal in-memory state is not updated.
+        To get an up-to-date RevMap, reconstruct the object.
         '''
         f = open(self.meta.revmap_file, 'a')
         f.write(''.join('%s %s %s\n' % (revnum, hex(binhash), br or '')