diff tests/test-graft.t @ 27899:78b9fdb844c1

graft: warn when -r is combined with revisions as positional arguments The behaviour in this case is undefined. Instead of silently doing something "random" and surprising, at least issue a warning. (This should perhaps be considered a "deprecation" and turned into an error in a future release.)
author Mads Kiilerich <madski@unity3d.com>
date Sun, 17 Jan 2016 19:33:02 +0100
parents cdb9493a7e2f
children 8abd9f785030
line wrap: on
line diff
--- a/tests/test-graft.t	Sun Jan 17 19:33:02 2016 +0100
+++ b/tests/test-graft.t	Sun Jan 17 19:33:02 2016 +0100
@@ -62,6 +62,7 @@
   [255]
 
   $ hg graft -r 1 2
+  warning: inconsistent use of --rev might give unexpected revision ordering!
   skipping ancestor revision 2:5c095ad7e90f
   skipping ancestor revision 1:5d205f8b35b6
   [255]