Show More
@@ -770,6 +770,10 b' class queue(object):' | |||
|
770 | 770 | else: |
|
771 | 771 | m, a, r, d = self.check_localchanges(repo, force) |
|
772 | 772 | match = cmdutil.matchfiles(repo, m + a + r) |
|
773 | if force: | |
|
774 | p = repo[None].parents() | |
|
775 | if len(p) > 1: | |
|
776 | raise util.Abort(_('cannot manage merge changesets')) | |
|
773 | 777 | commitfiles = m + a + r |
|
774 | 778 | self.check_toppatch(repo) |
|
775 | 779 | insert = self.full_series_end() |
@@ -58,3 +58,19 b' cat ../.hg/patches/p' | |||
|
58 | 58 | echo '% qnew -u with no username configured' |
|
59 | 59 | HGUSER= hg qnew -u blue red |
|
60 | 60 | cat ../.hg/patches/red |
|
61 | ||
|
62 | echo '% fail when trying to import a merge' | |
|
63 | hg init merge | |
|
64 | cd merge | |
|
65 | touch a | |
|
66 | hg ci -Am null | |
|
67 | echo a >> a | |
|
68 | hg ci -m a | |
|
69 | hg up -r 0 | |
|
70 | echo b >> a | |
|
71 | hg ci -m b | |
|
72 | hg merge -f 1 | |
|
73 | hg resolve --mark a | |
|
74 | hg qnew -f merge | |
|
75 | ||
|
76 | exit 0 |
@@ -35,3 +35,13 b' diff --git a/d/b b/d/b' | |||
|
35 | 35 | % qnew -u with no username configured |
|
36 | 36 | From: blue |
|
37 | 37 | |
|
38 | % fail when trying to import a merge | |
|
39 | adding a | |
|
40 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
41 | created new head | |
|
42 | merging a | |
|
43 | warning: conflicts during merge. | |
|
44 | merging a failed! | |
|
45 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
|
46 | use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon | |
|
47 | abort: cannot manage merge changesets |
General Comments 0
You need to be logged in to leave comments.
Login now