Skip to content

Commit

Permalink
Bug 1580354 - Handle spaces in bookmark names. r=zalun
Browse files Browse the repository at this point in the history
Summary:
Only split once when reading output from hg bookmark to prevent
an error when a user-created bookmark contains a space character
in the name.

Reviewers: zalun

Reviewed By: zalun

Bug #: 1580354

Differential Revision: https://phabricator.services.mozilla.com/D45469
  • Loading branch information
jfx2006 authored and zalun committed Sep 11, 2019
1 parent 7dfb11c commit 02cbbd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moz-phab
Original file line number Diff line number Diff line change
Expand Up @@ -1749,7 +1749,7 @@ class Mercurial(Repository):
# be deleted in cleanup(). Mercurial will automatically move the
# bookmark to the successors as we update commits.
for active, bookmark in [
l.split(" ")
l.split(" ", 1)
for l in self.hg_out(["bookmark", "-T", "{active} {bookmark}\n"])
]:
if active == "True":
Expand Down

0 comments on commit 02cbbd0

Please sign in to comment.