Show More
@@ -1999,7 +1999,7 b' def new(ui, repo, patch, *args, **opts):' | |||||
1999 | """ |
|
1999 | """ | |
2000 | msg = cmdutil.logmessage(opts) |
|
2000 | msg = cmdutil.logmessage(opts) | |
2001 | def getmsg(): |
|
2001 | def getmsg(): | |
2002 | return ui.edit(msg, ui.username()) |
|
2002 | return ui.edit(msg, opts['user'] or ui.username()) | |
2003 | q = repo.mq |
|
2003 | q = repo.mq | |
2004 | opts['msg'] = msg |
|
2004 | opts['msg'] = msg | |
2005 | if opts.get('edit'): |
|
2005 | if opts.get('edit'): |
@@ -70,6 +70,10 b' runtest() {' | |||||
70 | HGUSER= hg qnew -u blue red |
|
70 | HGUSER= hg qnew -u blue red | |
71 | catpatch ../.hg/patches/red |
|
71 | catpatch ../.hg/patches/red | |
72 |
|
72 | |||
|
73 | echo '% qnew -e -u with no username configured' | |||
|
74 | HGUSER= hg qnew -e -u chartreuse fucsia | |||
|
75 | catpatch ../.hg/patches/fucsia | |||
|
76 | ||||
73 | echo '% fail when trying to import a merge' |
|
77 | echo '% fail when trying to import a merge' | |
74 | hg init merge |
|
78 | hg init merge | |
75 | cd merge |
|
79 | cd merge |
@@ -42,6 +42,9 b' diff --git a/d/b b/d/b' | |||||
42 | % qnew -u with no username configured |
|
42 | % qnew -u with no username configured | |
43 | From: blue |
|
43 | From: blue | |
44 |
|
44 | |||
|
45 | % qnew -e -u with no username configured | |||
|
46 | From: chartreuse | |||
|
47 | ||||
45 | % fail when trying to import a merge |
|
48 | % fail when trying to import a merge | |
46 | adding a |
|
49 | adding a | |
47 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
50 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
@@ -101,6 +104,10 b' diff --git a/d/b b/d/b' | |||||
101 | # HG changeset patch |
|
104 | # HG changeset patch | |
102 | # Parent |
|
105 | # Parent | |
103 | # User blue |
|
106 | # User blue | |
|
107 | % qnew -e -u with no username configured | |||
|
108 | # HG changeset patch | |||
|
109 | # Parent | |||
|
110 | # User chartreuse | |||
104 | % fail when trying to import a merge |
|
111 | % fail when trying to import a merge | |
105 | adding a |
|
112 | adding a | |
106 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
113 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
General Comments 0
You need to be logged in to leave comments.
Login now