[Updated] D8523: py3: fix exception in pull when several things happen to a bookmark
valentin.gatienbaron (Valentin Gatien-Baron)
phabricator at mercurial-scm.org
Thu May 14 20:32:01 UTC 2020
Closed by commit rHGf189c5280d48: py3: fix exception in pull when several things happen to a bookmark (authored by valentin.gatienbaron).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8523?vs=21376&id=21384
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8523/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8523
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
@@ -754,7 +754,8 @@
if changed:
tr = trfunc()
changes = []
- for b, node, writer, msg in sorted(changed):
+ key = lambda t: (t[0], t[1] or b'')
+ for b, node, writer, msg in sorted(changed, key=key):
changes.append((b, node))
writer(msg)
localmarks.applychanges(repo, tr, changes)
To: valentin.gatienbaron, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200514/4f47ff1c/attachment-0002.html>
More information about the Mercurial-patches
mailing list