##// END OF EJS Templates
ui: allow default when prompting
Matt Mackall -
r5709:9dc26941 default
parent child Browse files
Show More
@@ -415,6 +415,8 class ui(object):
415 415 while True:
416 416 try:
417 417 r = self._readline(msg + ' ')
418 if not r:
419 return default
418 420 if not pat or re.match(pat, r, matchflags):
419 421 return r
420 422 else:
General Comments 0
You need to be logged in to leave comments. Login now