[PATCH 1 of 2] bookmarks: rephrase a comment to be shorted and clearer
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Sat Jun 10 01:32:29 UTC 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1497056101 -3600
# Sat Jun 10 01:55:01 2017 +0100
# Node ID 10c0e1f7d48bfa560879bbdbc6ceedc266e1b38b
# Parent 776d077eb4ef815e08631fb1e7b33375adca3ef1
# EXP-Topic bookmark
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
# hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 10c0e1f7d48b
bookmarks: rephrase a comment to be shorted and clearer
The initial motivation is that I need an initial level of indent in the next
changeset o:-) It turn out I like the new version better.
diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py
--- a/mercurial/bookmarks.py
+++ b/mercurial/bookmarks.py
@@ -68,9 +68,11 @@ class bmstore(dict):
refspec = encoding.tolocal(refspec)
setitem(self, refspec, node)
except (TypeError, ValueError):
- # - bin(...) can raise TypeError
- # - node in nm can raise ValueError for non-20-bytes entry
- # - split(...) can raise ValueError for string without ' '
+ # TypeError:
+ # - bin(...)
+ # ValueError:
+ # - node in nm, for non-20-bytes entry
+ # - split(...), for string without ' '
repo.ui.warn(_('malformed line in .hg/bookmarks: %r\n')
% line)
except IOError as inst:
More information about the Mercurial-devel
mailing list