D2469: bookmarks: write bookmarks file deterministically
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Feb 27 07:57:10 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbfb4494f846d: bookmarks: write bookmarks file deterministically (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2469?vs=6147&id=6168
REVISION DETAIL
https://phab.mercurial-scm.org/D2469
AFFECTED FILES
mercurial/bookmarks.py
CHANGE DETAILS
diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py
--- a/mercurial/bookmarks.py
+++ b/mercurial/bookmarks.py
@@ -179,7 +179,7 @@
self._aclean = True
def _write(self, fp):
- for name, node in self.iteritems():
+ for name, node in sorted(self.iteritems()):
fp.write("%s %s\n" % (hex(node), encoding.fromlocal(name)))
self._clean = True
self._repo.invalidatevolatilesets()
To: indygreg, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list