##// 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 while True:
415 while True:
416 try:
416 try:
417 r = self._readline(msg + ' ')
417 r = self._readline(msg + ' ')
418 if not r:
419 return default
418 if not pat or re.match(pat, r, matchflags):
420 if not pat or re.match(pat, r, matchflags):
419 return r
421 return r
420 else:
422 else:
General Comments 0
You need to be logged in to leave comments. Login now