diff mercurial/mail.py @ 32392:36d3559c69a6

revlog: tweak wording and logic for flags validation First, the logic around the if..elif..elif was subtly wrong and sub-optimal because all branches would be tested as long as the revlog was valid. This patch changes things so it behaves like a switch statement over the revlog version. While I was here, I also tweaked error strings to make them consistent and to read better.
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 19 May 2017 20:10:50 -0700
parents b306120844bf
children 0407a51b9d8c
line wrap: on
line diff