comparison tests/test-command-template.t @ 17384:4b87d947c4e1

Merge
author Bryan O'Sullivan <bryano@fb.com>
date Tue, 21 Aug 2012 13:12:56 -0700
parents bd605568c5a0 099c778ceb33
children 1fce478552b8
comparison
equal deleted inserted replaced
17382:a0cf8f4cd38b 17384:4b87d947c4e1
1361 $ echo 'x = "f' >> t 1361 $ echo 'x = "f' >> t
1362 $ hg log 1362 $ hg log
1363 abort: t:3: unmatched quotes 1363 abort: t:3: unmatched quotes
1364 [255] 1364 [255]
1365 1365
1366 Behind the scenes, this will throw TypeError
1367
1368 $ hg log -l 3 --template '{date|obfuscate}\n'
1369 abort: Template filter 'obfuscate' is not compatible with keyword 'date'
1370 [255]
1371
1372 Behind the scenes, this will throw a ValueError
1373
1374 $ hg log -l 3 --template 'line: {desc|shortdate}\n'
1375 abort: Template filter 'shortdate' is not compatible with keyword 'desc'
1376 [255]
1377
1378 Behind the scenes, this will throw AttributeError
1379
1380 $ hg log -l 3 --template 'line: {date|escape}\n'
1381 abort: Template filter 'escape' is not compatible with keyword 'date'
1382 [255]
1383
1384 Behind the scenes, this will throw ValueError
1385
1386 $ hg tip --template '{author|email|date}\n'
1387 abort: Template filter 'datefilter' is not compatible with keyword 'author'
1388 [255]
1389
1366 $ cd .. 1390 $ cd ..
1367 1391
1368 1392
1369 latesttag: 1393 latesttag:
1370 1394