Skip to content

Commit 02cbbd0

Browse files
jfx2006zalun
authored andcommitted
Bug 1580354 - Handle spaces in bookmark names. r=zalun
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
1 parent 7dfb11c commit 02cbbd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

moz-phab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1749,7 +1749,7 @@ class Mercurial(Repository):
17491749
# be deleted in cleanup(). Mercurial will automatically move the
17501750
# bookmark to the successors as we update commits.
17511751
for active, bookmark in [
1752-
l.split(" ")
1752+
l.split(" ", 1)
17531753
for l in self.hg_out(["bookmark", "-T", "{active} {bookmark}\n"])
17541754
]:
17551755
if active == "True":

0 commit comments

Comments
 (0)