test-annotate: support debugruntest

Summary:
`sed 's/3+/3-/'` treats `+` as a literal while the shinterp stdlib treats
it as part of regex.

Avoid the issue by using `s/3[+]/3-/` that work in both `sed` impelemntations.

Reviewed By: DurhamG

Differential Revision: D34840516

fbshipit-source-id: f20648afa76f7233cee40781bb1af2fd976bdbb0
This commit is contained in:
Jun Wu 2022-04-22 19:35:57 -07:00 committed by Facebook GitHub Bot
parent 5b26e0fb35
commit 75e8f40df3

View File

@ -635,7 +635,7 @@ merge
$ hg up 56fc739c091f342d6390b46cd18746150b93704d --quiet
$ echo 7 >> baz
$ hg ci -m 'one more line, out of line range'
$ sed 's/3+/3-/' baz > baz.new
$ sed 's/3[+]/3-/' baz > baz.new
$ mv baz.new baz
$ hg ci -m 'baz:3+->3-'
$ hg log -T '{desc}\n' -r 'followlines(baz, 5:7)'