Mercurial > hg
comparison tests/test-revset.t @ 32404:e8c043375b53
revset: make `hg log -r 'wdir()^'` work (issue4905)
This patch catches the WdirUnsupported exception to support wdir()^.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 19 May 2017 20:06:45 +0530 |
parents | 46ba2cdda476 |
children | f064e2f72c49 |
comparison
equal
deleted
inserted
replaced
32403:a28c76e1cea9 | 32404:e8c043375b53 |
---|---|
1219 0 | 1219 0 |
1220 | 1220 |
1221 Test working-directory revision | 1221 Test working-directory revision |
1222 $ hg debugrevspec 'wdir()' | 1222 $ hg debugrevspec 'wdir()' |
1223 2147483647 | 1223 2147483647 |
1224 $ hg debugrevspec 'wdir()^' | |
1225 9 | |
1226 $ hg up 7 | |
1227 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
1228 $ hg debugrevspec 'wdir()^' | |
1229 7 | |
1230 For tests consistency | |
1231 $ hg up 9 | |
1232 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
1224 $ hg debugrevspec 'tip or wdir()' | 1233 $ hg debugrevspec 'tip or wdir()' |
1225 9 | 1234 9 |
1226 2147483647 | 1235 2147483647 |
1227 $ hg debugrevspec '0:tip and wdir()' | 1236 $ hg debugrevspec '0:tip and wdir()' |
1228 $ log '0:wdir()' | tail -3 | 1237 $ log '0:wdir()' | tail -3 |