Show More
@@ -496,6 +496,9 b' def dorecord(ui, repo, commitfunc, cmdsu' | |||||
496 | raise util.Abort(_('running non-interactively, use %s instead') % |
|
496 | raise util.Abort(_('running non-interactively, use %s instead') % | |
497 | cmdsuggest) |
|
497 | cmdsuggest) | |
498 |
|
498 | |||
|
499 | # make sure username is set before going interactive | |||
|
500 | ui.username() | |||
|
501 | ||||
499 | def recordfunc(ui, repo, message, match, opts): |
|
502 | def recordfunc(ui, repo, message, match, opts): | |
500 | """This is generic record driver. |
|
503 | """This is generic record driver. | |
501 |
|
504 |
@@ -246,10 +246,19 b' Add plain file' | |||||
246 | +9 |
|
246 | +9 | |
247 | +10 |
|
247 | +10 | |
248 |
|
248 | |||
|
249 | Modify end of plain file with username unset | |||
|
250 | ||||
|
251 | $ echo 11 >> plain | |||
|
252 | $ unset HGUSER | |||
|
253 | $ hg record --config ui.username= -d '8 0' -m end plain | |||
|
254 | abort: no username supplied (see "hg help config") | |||
|
255 | [255] | |||
|
256 | ||||
249 |
|
257 | |||
250 | Modify end of plain file |
|
258 | Modify end of plain file | |
251 |
|
259 | |||
252 | $ echo 11 >> plain |
|
260 | $ HGUSER="test" | |
|
261 | $ export HGUSER | |||
253 | $ hg record -d '8 0' -m end plain <<EOF |
|
262 | $ hg record -d '8 0' -m end plain <<EOF | |
254 | > y |
|
263 | > y | |
255 | > y |
|
264 | > y |
General Comments 0
You need to be logged in to leave comments.
Login now