Mercurial > hg-stable
comparison tests/test-resolve.t @ 21265:232de244ab6f
resolve: print warning when no work performed (issue4208)
Previously, if the paths specified as arguments to |hg resolve| were
invalid, they were silently ignored and a no-op would ensue.
This patch fixes that in some scenarios.
If none of the paths specified to |hg resolve| match a path that is in
mergestate, a warning will be emitted.
Ideally, a warning would be emitted for every path/pattern specified
that doesn't match anything. To achieve this would require significant
refactoring of the matching subsystem. That work is beyond the scope of
this patch series. Something is better than nothing and this patch
gets us something.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 18 Apr 2014 18:56:26 -0700 |
parents | 4e932dc5c113 |
children | 19d6fec60b81 |
comparison
equal
deleted
inserted
replaced
21264:4e932dc5c113 | 21265:232de244ab6f |
---|---|
29 resolve -l should contain an unresolved entry | 29 resolve -l should contain an unresolved entry |
30 | 30 |
31 $ hg resolve -l | 31 $ hg resolve -l |
32 U file | 32 U file |
33 | 33 |
34 resolving an unknown path emits a warning | |
35 $ hg resolve -m does-not-exist | |
36 arguments do not match paths that need resolved | |
37 | |
34 resolve the failure | 38 resolve the failure |
35 | 39 |
36 $ echo resolved > file | 40 $ echo resolved > file |
37 $ hg resolve -m file | 41 $ hg resolve -m file |
38 $ hg commit -m 'resolved' | 42 $ hg commit -m 'resolved' |