Mercurial > hg
comparison tests/test-subrepo-svn.t @ 15372:695ac6aca77f stable
check-code: fix issues with finding patterns in unified tests, fix tests
- old-style patterns without ^ were getting improperly anchored
- finditer was matching against beginning of line poorly
- \s was matching newlines
- [^x] was matching newlines
so we:
- remove earlier hacks for multiline matching
- fix unified test anchoring by adding .*
- replace \s with [ \t]
- replace [^x] with [^\nx]
- force all matches into multiline mode so ^ anchors work
This uncovers a number of test issues that are then repaired.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 27 Oct 2011 17:22:04 -0500 |
parents | 53f37b24f26a |
children | fab28a577a38 |
comparison
equal
deleted
inserted
replaced
15371:f26ed4ea46d8 | 15372:695ac6aca77f |
---|---|
494 test having obstructions when switching branches on checkout: | 494 test having obstructions when switching branches on checkout: |
495 $ hg checkout tip | 495 $ hg checkout tip |
496 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 496 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
497 $ echo "obstruct = [svn] $SVNREPO/externals" >> .hgsub | 497 $ echo "obstruct = [svn] $SVNREPO/externals" >> .hgsub |
498 $ svn co -r5 --quiet "$SVNREPO"/externals obstruct | 498 $ svn co -r5 --quiet "$SVNREPO"/externals obstruct |
499 $ hg commit -m 'Start making obstructed wc' | 499 $ hg commit -m 'Start making obstructed working copy' |
500 committing subrepository obstruct | 500 committing subrepository obstruct |
501 $ hg book other | 501 $ hg book other |
502 $ hg co -r 'p1(tip)' | 502 $ hg co -r 'p1(tip)' |
503 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 503 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
504 $ echo "obstruct = [svn] $SVNREPO/src" >> .hgsub | 504 $ echo "obstruct = [svn] $SVNREPO/src" >> .hgsub |