Mercurial > public > mercurial-scm > hg
diff tests/test-unionrepo.t @ 19081:e97ce4a5afc5 stable
check-code: expand sed rule to include more offenders
Expands the rule added in 5e4491c114b2 to include cases where the
address is a line number instead of a regular expression, and fixes an
instance of this pattern in test-unionrepo.t.
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Mon, 22 Apr 2013 16:50:08 -0500 |
parents | a9c443b3b240 |
children | 70675d77fd4a |
line wrap: on
line diff
--- a/tests/test-unionrepo.t Mon Apr 22 16:33:28 2013 -0500 +++ b/tests/test-unionrepo.t Mon Apr 22 16:50:08 2013 -0500 @@ -25,7 +25,8 @@ $ hg clone -q repo1 --rev 0 repo2 $ cd repo2 $ touch repo2-1 - $ sed '1irepo2-1 at top' f > f.tmp + $ sed '1i\ + > repo2-1 at top' f > f.tmp $ mv f.tmp f $ hg ci -Aqmrepo2-1 $ touch repo2-2