Mercurial > hgsubversion
changeset 1197:1414cdafa7af
svnmeta: explicitly test for None
There was a slight error in the way we were checking the value of 'c' via 'if
c'. If the type of 'c' is a bool then this could incorrectly be false. Instead,
we check for None explicitly. Nothing in production should have been affected
by this yet since this was only a problem with patches not yet released.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 02 Jun 2014 16:31:54 -0500 |
parents | 878372849175 |
children | b1a6edc78bfb |
files | hgsubversion/svnmeta.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/svnmeta.py +++ b/hgsubversion/svnmeta.py @@ -103,7 +103,7 @@ class SVNMeta(object): val = util.load(f, default=default) # prefer the non-default, and the one sent from command-line - if c and c != val and c != default: + if c is not None and c != val and c != default: val = c # set the value as the one from disk (or default if not found)