Show More
@@ -628,6 +628,9 b' def tryimportone(ui, repo, hunk, parents' | |||||
628 | p2 = repo[nullid] |
|
628 | p2 = repo[nullid] | |
629 | except error.RepoError: |
|
629 | except error.RepoError: | |
630 | p1, p2 = parents |
|
630 | p1, p2 = parents | |
|
631 | if p2.node() == nullid: | |||
|
632 | ui.warn(_("warning: import the patch as a normal revision\n" | |||
|
633 | "(use --exact to import the patch as a merge)\n")) | |||
631 | else: |
|
634 | else: | |
632 | p1, p2 = parents |
|
635 | p1, p2 = parents | |
633 |
|
636 |
@@ -66,6 +66,8 b' Test without --exact and diff.p1 != work' | |||||
66 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
66 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
67 | $ hg import ../merge.diff |
|
67 | $ hg import ../merge.diff | |
68 | applying ../merge.diff |
|
68 | applying ../merge.diff | |
|
69 | warning: import the patch as a normal revision | |||
|
70 | (use --exact to import the patch as a merge) | |||
69 | $ tipparents |
|
71 | $ tipparents | |
70 | 2:890ecaa90481 addc |
|
72 | 2:890ecaa90481 addc | |
71 | $ hg strip --no-backup tip |
|
73 | $ hg strip --no-backup tip | |
@@ -99,6 +101,8 b' Test with --bypass and diff.p1 != workin' | |||||
99 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
101 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
100 | $ hg import --bypass ../merge.diff |
|
102 | $ hg import --bypass ../merge.diff | |
101 | applying ../merge.diff |
|
103 | applying ../merge.diff | |
|
104 | warning: import the patch as a normal revision | |||
|
105 | (use --exact to import the patch as a merge) | |||
102 | $ tipparents |
|
106 | $ tipparents | |
103 | 2:890ecaa90481 addc |
|
107 | 2:890ecaa90481 addc | |
104 | $ hg strip --no-backup tip |
|
108 | $ hg strip --no-backup tip |
General Comments 0
You need to be logged in to leave comments.
Login now