##// END OF EJS Templates
ui: fix extra space in username abort
Matt Mackall -
r20580:b75a23ee default
parent child Browse files
Show More
@@ -451,7 +451,7 b' class ui(object):'
451 if not user:
451 if not user:
452 raise util.Abort(_('no username supplied'),
452 raise util.Abort(_('no username supplied'),
453 hint=_('use "hg config --edit" '
453 hint=_('use "hg config --edit" '
454 ' to set your username'))
454 'to set your username'))
455 if "\n" in user:
455 if "\n" in user:
456 raise util.Abort(_("username %s contains a newline\n") % repr(user))
456 raise util.Abort(_("username %s contains a newline\n") % repr(user))
457 return user
457 return user
@@ -50,7 +50,7 b''
50 $ echo "username = " >> .hg/hgrc
50 $ echo "username = " >> .hg/hgrc
51 $ hg commit -m commit-1
51 $ hg commit -m commit-1
52 abort: no username supplied
52 abort: no username supplied
53 (use "hg config --edit" to set your username)
53 (use "hg config --edit" to set your username)
54 [255]
54 [255]
55 $ rm .hg/hgrc
55 $ rm .hg/hgrc
56 $ hg commit -m commit-1 2>&1
56 $ hg commit -m commit-1 2>&1
@@ -252,7 +252,7 b' Modify end of plain file with username u'
252 $ unset HGUSER
252 $ unset HGUSER
253 $ hg record --config ui.username= -d '8 0' -m end plain
253 $ hg record --config ui.username= -d '8 0' -m end plain
254 abort: no username supplied
254 abort: no username supplied
255 (use "hg config --edit" to set your username)
255 (use "hg config --edit" to set your username)
256 [255]
256 [255]
257
257
258
258
General Comments 0
You need to be logged in to leave comments. Login now