Mercurial > hgrepos > DevTools > mercurial-extensions
changeset 347:f30f31577c8b
Implemented unit tests for the new "repo" and "reposhort" path filters
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 05 Aug 2019 09:27:14 +0200 |
| parents | 52e1ea6acff1 |
| children | 41a8e3db181c |
| files | tests/test-kwarchive.t |
| diffstat | 1 files changed, 60 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-kwarchive.t Mon Aug 05 09:21:48 2019 +0200 +++ b/tests/test-kwarchive.t Mon Aug 05 09:27:14 2019 +0200 @@ -276,6 +276,66 @@ $Id: test.file 54f2f8d67c37 1970-01-01 00:00:00 +0000 first.second draft $ $Source: dir1/dir2/test.file $ +kwprint with "repo" path + + $ hg kwprint --path-filter=repo + $Author: first.second $ + $Date: 1970-01-01 00:00:00 +0000 $ + $HGbookmarks: $ + $HGbranch: default $ + $HGlatesttagdate: 1970-01-01 00:00:00 +0000 $ + $HGlatesttagdistance: 3 $ + $HGlatesttagjustdate: 1970-01-01 $ + $HGlatesttags: null $ + $HGpath: repo:32ee1d210af8d5434587ac0b0494e90d69bbfce8 $ + $HGrepoid: 32ee1d210af8d5434587ac0b0494e90d69bbfce8 $ + $HGrevision: 54f2f8d67c3781f41d8bebd01cd19ddb86f41574 $ + $HGshortdate: 1970-01-01 $ + $HGshortrepoid: 32ee1d210af8 $ + $HGtags: $ + $JustDate: 1970-01-01 $ + $Revision: 54f2f8d67c37 $ + $State: draft $ + ^$ (re) + $File: test.file $ + $HGheader: repo:32ee1d210af8d5434587ac0b0494e90d69bbfce8/dir1/dir2/test.file 54f2f8d67c3781f41d8bebd01cd19ddb86f41574 1970-01-01 00:00:00 +0000 first.second draft $ + $HGid: repo:32ee1d210af8d5434587ac0b0494e90d69bbfce8/dir1/dir2/test.file 54f2f8d67c37 1970-01-01 00:00:00 +0000 first.second draft $ + $HGnodeid: a4dd6f4b22e11fec41158eec187630c24a43120a $ + $HGsource: repo:32ee1d210af8d5434587ac0b0494e90d69bbfce8/dir1/dir2/test.file $ + $Header: dir1/dir2/test.file 54f2f8d67c37 1970-01-01 00:00:00 +0000 first.second draft $ + $Id: test.file 54f2f8d67c37 1970-01-01 00:00:00 +0000 first.second draft $ + $Source: dir1/dir2/test.file $ + +kwprint with "reposhort" path + + $ hg kwprint --path-filter=reposhort + $Author: first.second $ + $Date: 1970-01-01 00:00:00 +0000 $ + $HGbookmarks: $ + $HGbranch: default $ + $HGlatesttagdate: 1970-01-01 00:00:00 +0000 $ + $HGlatesttagdistance: 3 $ + $HGlatesttagjustdate: 1970-01-01 $ + $HGlatesttags: null $ + $HGpath: repo:32ee1d210af8 $ + $HGrepoid: 32ee1d210af8d5434587ac0b0494e90d69bbfce8 $ + $HGrevision: 54f2f8d67c3781f41d8bebd01cd19ddb86f41574 $ + $HGshortdate: 1970-01-01 $ + $HGshortrepoid: 32ee1d210af8 $ + $HGtags: $ + $JustDate: 1970-01-01 $ + $Revision: 54f2f8d67c37 $ + $State: draft $ + ^$ (re) + $File: test.file $ + $HGheader: repo:32ee1d210af8/dir1/dir2/test.file 54f2f8d67c3781f41d8bebd01cd19ddb86f41574 1970-01-01 00:00:00 +0000 first.second draft $ + $HGid: repo:32ee1d210af8/dir1/dir2/test.file 54f2f8d67c37 1970-01-01 00:00:00 +0000 first.second draft $ + $HGnodeid: a4dd6f4b22e11fec41158eec187630c24a43120a $ + $HGsource: repo:32ee1d210af8/dir1/dir2/test.file $ + $Header: dir1/dir2/test.file 54f2f8d67c37 1970-01-01 00:00:00 +0000 first.second draft $ + $Id: test.file 54f2f8d67c37 1970-01-01 00:00:00 +0000 first.second draft $ + $Source: dir1/dir2/test.file $ + Archiving ...
