hgext/record.py
changeset 20171 a765611e06dc
parent 19497 e012a20061ed
child 20266 061766323061
--- a/hgext/record.py	Wed Dec 11 11:33:58 2013 -0600
+++ b/hgext/record.py	Thu Dec 12 12:25:56 2013 +0530
@@ -502,7 +502,8 @@
                          cmdsuggest)
 
     # make sure username is set before going interactive
-    ui.username()
+    if not opts.get('user'):
+        ui.username() # raise exception, username not provided
 
     def recordfunc(ui, repo, message, match, opts):
         """This is generic record driver.