##// END OF EJS Templates
import: show the warning message for failure of merging...
FUJIWARA Katsunori -
r22303:0c838e74 stable
parent child Browse files
Show More
@@ -628,6 +628,9 b' def tryimportone(ui, repo, hunk, parents'
628 628 p2 = repo[nullid]
629 629 except error.RepoError:
630 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 634 else:
632 635 p1, p2 = parents
633 636
@@ -66,6 +66,8 b' Test without --exact and diff.p1 != work'
66 66 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
67 67 $ hg import ../merge.diff
68 68 applying ../merge.diff
69 warning: import the patch as a normal revision
70 (use --exact to import the patch as a merge)
69 71 $ tipparents
70 72 2:890ecaa90481 addc
71 73 $ hg strip --no-backup tip
@@ -99,6 +101,8 b' Test with --bypass and diff.p1 != workin'
99 101 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
100 102 $ hg import --bypass ../merge.diff
101 103 applying ../merge.diff
104 warning: import the patch as a normal revision
105 (use --exact to import the patch as a merge)
102 106 $ tipparents
103 107 2:890ecaa90481 addc
104 108 $ hg strip --no-backup tip
General Comments 0
You need to be logged in to leave comments. Login now