comparison tests/test-subrepo-recursion.t @ 12376:97ffc68f71d3

tests: add glob matching for unified tests This adds a " (glob)" marker that works like a simpler version of (re): "*" is converted to ".*", and "?" is converted to ".". Both special characters can be escaped using "\", and the backslash itself can be escaped as well. Other glob-style syntax, like "**", "[chars]", or "[!chars]", isn't supported.
author Brodie Rao <brodie@bitheap.org>
date Wed, 22 Sep 2010 16:06:02 -0500
parents 02990e22150b
children 40852b4b910c
comparison
equal deleted inserted replaced
12375:02990e22150b 12376:97ffc68f71d3
250 Clone and test outgoing: 250 Clone and test outgoing:
251 251
252 $ cd .. 252 $ cd ..
253 $ hg clone repo repo2 253 $ hg clone repo repo2
254 updating to branch default 254 updating to branch default
255 pulling subrepo foo from .*/test-subrepo-recursion\.t/repo/foo (re) 255 pulling subrepo foo from */test-subrepo-recursion.t/repo/foo (glob)
256 requesting all changes 256 requesting all changes
257 adding changesets 257 adding changesets
258 adding manifests 258 adding manifests
259 adding file changes 259 adding file changes
260 added 4 changesets with 7 changes to 3 files 260 added 4 changesets with 7 changes to 3 files
261 pulling subrepo foo/bar from .*/test-subrepo-recursion\.t/repo/foo/bar (re) 261 pulling subrepo foo/bar from */test-subrepo-recursion.t/repo/foo/bar (glob)
262 requesting all changes 262 requesting all changes
263 adding changesets 263 adding changesets
264 adding manifests 264 adding manifests
265 adding file changes 265 adding file changes
266 added 3 changesets with 3 changes to 1 files 266 added 3 changesets with 3 changes to 1 files
267 3 files updated, 0 files merged, 0 files removed, 0 files unresolved 267 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
268 $ cd repo2 268 $ cd repo2
269 $ hg outgoing -S 269 $ hg outgoing -S
270 comparing with .*/test-subrepo-recursion\.t/repo (re) 270 comparing with */test-subrepo-recursion.t/repo (glob)
271 searching for changes 271 searching for changes
272 no changes found 272 no changes found
273 comparing with .*/test-subrepo-recursion\.t/repo/foo (re) 273 comparing with */test-subrepo-recursion.t/repo/foo (glob)
274 searching for changes 274 searching for changes
275 no changes found 275 no changes found
276 [1] 276 [1]
277 277
278 Make nested change: 278 Make nested change:
288 y3 288 y3
289 +y4 289 +y4
290 $ hg commit -m 3-4-2 290 $ hg commit -m 3-4-2
291 committing subrepository foo 291 committing subrepository foo
292 $ hg outgoing -S 292 $ hg outgoing -S
293 comparing with .*/test-subrepo-recursion\.t/repo (re) 293 comparing with */test-subrepo-recursion.t/repo (glob)
294 searching for changes 294 searching for changes
295 changeset: 3:2655b8ecc4ee 295 changeset: 3:2655b8ecc4ee
296 tag: tip 296 tag: tip
297 user: test 297 user: test
298 date: Thu Jan 01 00:00:00 1970 +0000 298 date: Thu Jan 01 00:00:00 1970 +0000
299 summary: 3-4-2 299 summary: 3-4-2
300 300
301 comparing with .*/test-subrepo-recursion\.t/repo/foo (re) 301 comparing with */test-subrepo-recursion.t/repo/foo (glob)
302 searching for changes 302 searching for changes
303 changeset: 4:e96193d6cb36 303 changeset: 4:e96193d6cb36
304 tag: tip 304 tag: tip
305 user: test 305 user: test
306 date: Thu Jan 01 00:00:00 1970 +0000 306 date: Thu Jan 01 00:00:00 1970 +0000
314 $ echo 'default = ../repo2' >> .hg/hgrc 314 $ echo 'default = ../repo2' >> .hg/hgrc
315 315
316 Test incoming: 316 Test incoming:
317 317
318 $ hg incoming -S 318 $ hg incoming -S
319 comparing with .*/test-subrepo-recursion\.t/repo2 (re) 319 comparing with */test-subrepo-recursion.t/repo2 (glob)
320 searching for changes 320 searching for changes
321 changeset: 3:2655b8ecc4ee 321 changeset: 3:2655b8ecc4ee
322 tag: tip 322 tag: tip
323 user: test 323 user: test
324 date: Thu Jan 01 00:00:00 1970 +0000 324 date: Thu Jan 01 00:00:00 1970 +0000
325 summary: 3-4-2 325 summary: 3-4-2
326 326
327 comparing with .*/test-subrepo-recursion\.t/repo2/foo (re) 327 comparing with */test-subrepo-recursion.t/repo2/foo (glob)
328 searching for changes 328 searching for changes
329 changeset: 4:e96193d6cb36 329 changeset: 4:e96193d6cb36
330 tag: tip 330 tag: tip
331 user: test 331 user: test
332 date: Thu Jan 01 00:00:00 1970 +0000 332 date: Thu Jan 01 00:00:00 1970 +0000