Mercurial > hg
comparison hgext/record.py @ 17446:3de04c07966a
record: checks for valid username before starting recording process (issue3456)
author | Sumeet <sumeet@fb.com> |
---|---|
date | Mon, 27 Aug 2012 12:41:10 -0700 |
parents | e95ec38f86b0 |
children | cd73bbc99bdc |
comparison
equal
deleted
inserted
replaced
17445:e5422a9ffe9d | 17446:3de04c07966a |
---|---|
494 def dorecord(ui, repo, commitfunc, cmdsuggest, backupall, *pats, **opts): | 494 def dorecord(ui, repo, commitfunc, cmdsuggest, backupall, *pats, **opts): |
495 if not ui.interactive(): | 495 if not ui.interactive(): |
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 |
502 Its job is to interactively filter local changes, and | 505 Its job is to interactively filter local changes, and |
503 accordingly prepare working directory into a state in which the | 506 accordingly prepare working directory into a state in which the |