From f23561b4eec9a8d810e36d77b7a572eb7baf155d Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 9 Jun 2011 13:46:11 -0400 Subject: [PATCH] update detection of binary files --- jsvn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsvn b/jsvn index dd8de0f..f05632c 100755 --- a/jsvn +++ b/jsvn @@ -276,7 +276,7 @@ def binaries(argv, svn, base_path = '.'): ent_path = os.sep.join([base_path, ent]) if os.path.isfile(ent_path): mime_type = getSVNProperty(svn, 'svn:mime-type', ent_path) - if re.match(r'application/octet-stream', mime_type): + if mime_type != '' and not re.match(r'text/.*', mime_type): # we found a binary file needs_lock = getSVNProperty(svn, 'svn:needs-lock', ent_path) if needs_lock: