Fossil

Check-in [b120bc8b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Print an error message and quite if the --user option appears on a "fossil commit" command but specifies a username not found in the database. Ticket [3ed2e994e1750b]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b120bc8b262ac0056935c0c9365957fe331d29b4
User & Date: drh 2011-08-30 18:04:36
Context
2011-08-31
14:34
Improvements to artifact descriptions merged into trunk. check-in: 49402fc7 user: drh tags: trunk
09:55
Merge latest trunk. check-in: 40ed431c user: dmitry tags: symlinks
08:24
Trying to improve the ui artifact description to something easier to parse by the human eye.

I'd still like to have the branch name of every checkin, but I still don't know how to get it. check-in: d34a1b9f user: viriketo tags: artifact_description

2011-08-30
21:46
merge trunk before changes check-in: ffa3b1ea user: venkat tags: venks-emacs
18:04
Print an error message and quite if the --user option appears on a "fossil commit" command but specifies a username not found in the database. Ticket [3ed2e994e1750b] check-in: b120bc8b user: drh tags: trunk
17:39
Display the last modification time of tickets using either localtime or UTC according to user preferences. check-in: 839f1050 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/user.c.

310
311
312
313
314
315
316

317





318
319
320
321
322
323
324
**
** The user name is stored in g.zLogin.  The uid is in g.userUid.
*/
void user_select(void){
  Stmt s;

  if( g.userUid ) return;

  if( attempt_user(g.zLogin) ) return;






  if( g.localOpen && attempt_user(db_lget("default-user",0)) ) return;

  if( attempt_user(db_get("default-user", 0)) ) return;

  if( attempt_user(getenv("USER")) ) return;








>
|
>
>
>
>
>







310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
**
** The user name is stored in g.zLogin.  The uid is in g.userUid.
*/
void user_select(void){
  Stmt s;

  if( g.userUid ) return;
  if( g.zLogin ){
    if( attempt_user(g.zLogin)==0 ){
      fossil_fatal("no such user: %s", g.zLogin);
    }else{
      return;
    }
  }

  if( g.localOpen && attempt_user(db_lget("default-user",0)) ) return;

  if( attempt_user(db_get("default-user", 0)) ) return;

  if( attempt_user(getenv("USER")) ) return;