##// END OF EJS Templates
Merge with -stable
Matt Mackall -
r9523:d932dc65 merge default
parent child Browse files
Show More
@@ -160,9 +160,8 b' def colorqseries(orig, ui, repo, *dummy,'
160 return retval
160 return retval
161
161
162 _patch_effects = { 'applied': ['blue', 'bold', 'underline'],
162 _patch_effects = { 'applied': ['blue', 'bold', 'underline'],
163 'missing': ['red', 'bold'],
163 'missing': ['red', 'bold'],
164 'unapplied': ['black', 'bold'], }
164 'unapplied': ['black', 'bold'], }
165
166 def colorwrap(orig, s):
165 def colorwrap(orig, s):
167 '''wrap ui.write for colored diff output'''
166 '''wrap ui.write for colored diff output'''
168 lines = s.split('\n')
167 lines = s.split('\n')
@@ -153,11 +153,13 b" protomap = {'http': httpcheck,"
153 def issvnurl(url):
153 def issvnurl(url):
154 try:
154 try:
155 proto, path = url.split('://', 1)
155 proto, path = url.split('://', 1)
156 path = urllib.url2pathname(path)
156 if proto == 'file':
157 path = urllib.url2pathname(path)
157 except ValueError:
158 except ValueError:
158 proto = 'file'
159 proto = 'file'
159 path = os.path.abspath(url)
160 path = os.path.abspath(url)
160 path = path.replace(os.sep, '/')
161 if proto == 'file':
162 path = path.replace(os.sep, '/')
161 check = protomap.get(proto, lambda p, p2: False)
163 check = protomap.get(proto, lambda p, p2: False)
162 while '/' in path:
164 while '/' in path:
163 if check(path, proto):
165 if check(path, proto):
@@ -216,11 +216,11 b' def extdiff(ui, repo, *pats, **opts):'
216 that revision is compared to the working directory, and, when no
216 that revision is compared to the working directory, and, when no
217 revisions are specified, the working directory files are compared
217 revisions are specified, the working directory files are compared
218 to its parent.'''
218 to its parent.'''
219 program = opts['program'] or 'diff'
219 program = opts.get('program')
220 if opts['program']:
220 option = opts.get('option')
221 option = opts['option']
221 if not program:
222 else:
222 program = 'diff'
223 option = opts['option'] or ['-Npru']
223 option = option or ['-Npru']
224 return dodiff(ui, repo, program, option, pats, opts)
224 return dodiff(ui, repo, program, option, pats, opts)
225
225
226 cmdtable = {
226 cmdtable = {
General Comments 0
You need to be logged in to leave comments. Login now