##// END OF EJS Templates
scmutil: abort if an empty revision is given to revpair()...
scmutil: abort if an empty revision is given to revpair() When using 'extdiff --patch' to check the changes in a rebase, 'precursors(x)' evaluated to an empty set because I forgot the --hidden flag, so the other revision was used as the replacement for the empty set. The result was the patch for the other revision was diffed against itself, and the tool saying there were no differences. That's misleading since the expected diff args were silently changed, so it's better to bail out. The other uses of scmutil.revpair() are commands.diff and commands.status, and it doesn't make sense to allow an empty revision there either. The code here was suggested by Yuya Nishihara.

File last commit:

r23049:8a952d8f stable
r26836:88c4e97b stable
Show More
ru.po
0 lines | 1.2 MiB | application/x-gettext
File size 1.2 MiB is bigger then allowed limit 515.6 KiB. Show as raw