# HG changeset patch # User Matt Mackall # Date 1254598797 18000 # Node ID d932dc6558812678bb374d66a364212d54503744 # Parent 47f1d44d3fa353e8b7ef8cf2126b061d504a333b# Parent e3ce0c30798b911660d397cd5b07c8bc39297556 Merge with -stable diff -r 47f1d44d3fa3 -r d932dc655881 hgext/color.py --- a/hgext/color.py Sat Oct 03 14:39:46 2009 -0500 +++ b/hgext/color.py Sat Oct 03 14:39:57 2009 -0500 @@ -160,9 +160,8 @@ return retval _patch_effects = { 'applied': ['blue', 'bold', 'underline'], - 'missing': ['red', 'bold'], - 'unapplied': ['black', 'bold'], } - + 'missing': ['red', 'bold'], + 'unapplied': ['black', 'bold'], } def colorwrap(orig, s): '''wrap ui.write for colored diff output''' lines = s.split('\n') diff -r 47f1d44d3fa3 -r d932dc655881 hgext/convert/subversion.py --- a/hgext/convert/subversion.py Sat Oct 03 14:39:46 2009 -0500 +++ b/hgext/convert/subversion.py Sat Oct 03 14:39:57 2009 -0500 @@ -153,11 +153,13 @@ def issvnurl(url): try: proto, path = url.split('://', 1) - path = urllib.url2pathname(path) + if proto == 'file': + path = urllib.url2pathname(path) except ValueError: proto = 'file' path = os.path.abspath(url) - path = path.replace(os.sep, '/') + if proto == 'file': + path = path.replace(os.sep, '/') check = protomap.get(proto, lambda p, p2: False) while '/' in path: if check(path, proto): diff -r 47f1d44d3fa3 -r d932dc655881 hgext/extdiff.py --- a/hgext/extdiff.py Sat Oct 03 14:39:46 2009 -0500 +++ b/hgext/extdiff.py Sat Oct 03 14:39:57 2009 -0500 @@ -216,11 +216,11 @@ that revision is compared to the working directory, and, when no revisions are specified, the working directory files are compared to its parent.''' - program = opts['program'] or 'diff' - if opts['program']: - option = opts['option'] - else: - option = opts['option'] or ['-Npru'] + program = opts.get('program') + option = opts.get('option') + if not program: + program = 'diff' + option = option or ['-Npru'] return dodiff(ui, repo, program, option, pats, opts) cmdtable = {