Mercurial > hg
comparison tests/test-subrepo.t @ 24134:afed5d2e7985
revert: display full subrepo output with --dry-run
Since the point of --dry-run is to show what will happen, the output with and
without it should agree. And since revert wasn't being called on subrepos with
--dry-run before, revert in the subrepo had to be defanged in this case.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 07 Feb 2015 21:47:28 -0500 |
parents | 6becb9dbca25 |
children | 7a2194473155 |
comparison
equal
deleted
inserted
replaced
24133:79c2c29c71ae | 24134:afed5d2e7985 |
---|---|
48 .hgsub .hgsubstate | 48 .hgsub .hgsubstate |
49 | 49 |
50 Revert subrepo and test subrepo fileset keyword: | 50 Revert subrepo and test subrepo fileset keyword: |
51 | 51 |
52 $ echo b > s/a | 52 $ echo b > s/a |
53 $ hg revert --dry-run "set:subrepo('glob:s*')" | |
54 reverting subrepo s | |
55 reverting s/a (glob) | |
56 $ cat s/a | |
57 b | |
53 $ hg revert "set:subrepo('glob:s*')" | 58 $ hg revert "set:subrepo('glob:s*')" |
54 reverting subrepo s | 59 reverting subrepo s |
55 reverting s/a (glob) | 60 reverting s/a (glob) |
61 $ cat s/a | |
62 a | |
56 $ rm s/a.orig | 63 $ rm s/a.orig |
57 | 64 |
58 Revert subrepo with no backup. The "reverting s/a" line is gone since | 65 Revert subrepo with no backup. The "reverting s/a" line is gone since |
59 we're really running 'hg update' in the subrepo: | 66 we're really running 'hg update' in the subrepo: |
60 | 67 |