##// END OF EJS Templates
graft: warn when -r is combined with revisions as positional arguments...
Mads Kiilerich -
r27899:78b9fdb8 default
parent child Browse files
Show More
@@ -3889,6 +3889,10 b' def graft(ui, repo, *revs, **opts):'
3889 return _dograft(ui, repo, *revs, **opts)
3889 return _dograft(ui, repo, *revs, **opts)
3890
3890
3891 def _dograft(ui, repo, *revs, **opts):
3891 def _dograft(ui, repo, *revs, **opts):
3892 if revs and opts['rev']:
3893 ui.warn(_('warning: inconsistent use of --rev might give unexpected '
3894 'revision ordering!\n'))
3895
3892 revs = list(revs)
3896 revs = list(revs)
3893 revs.extend(opts['rev'])
3897 revs.extend(opts['rev'])
3894
3898
@@ -62,6 +62,7 b' Specify revisions with -r:'
62 [255]
62 [255]
63
63
64 $ hg graft -r 1 2
64 $ hg graft -r 1 2
65 warning: inconsistent use of --rev might give unexpected revision ordering!
65 skipping ancestor revision 2:5c095ad7e90f
66 skipping ancestor revision 2:5c095ad7e90f
66 skipping ancestor revision 1:5d205f8b35b6
67 skipping ancestor revision 1:5d205f8b35b6
67 [255]
68 [255]
General Comments 0
You need to be logged in to leave comments. Login now