##// END OF EJS Templates
localrepo: fix partial merge test (issue 1111)
Patrick Mezard -
r6639:6334569c default
parent child Browse files
Show More
@@ -787,7 +787,7 b' class localrepository(repo.repository):'
787 update_dirstate = True
787 update_dirstate = True
788
788
789 if (not force and p2 != nullid and
789 if (not force and p2 != nullid and
790 (match.files() or match.anypats())):
790 (match and (match.files() or match.anypats()))):
791 raise util.Abort(_('cannot partially commit a merge '
791 raise util.Abort(_('cannot partially commit a merge '
792 '(do not specify files or patterns)'))
792 '(do not specify files or patterns)'))
793 else:
793 else:
@@ -96,3 +96,21 b' hg transplant 1'
96 hg transplant --continue
96 hg transplant --continue
97 hg transplant 1:3
97 hg transplant 1:3
98 hg locate
98 hg locate
99 cd ..
100
101 # Test transplant --merge (issue 1111)
102 echo % test transplant merge
103 hg init t1111
104 cd t1111
105 echo a > a
106 hg ci -Am adda
107 echo b >> a
108 hg ci -m appendb
109 echo c >> a
110 hg ci -m appendc
111 hg up -C 0
112 echo d >> a
113 hg ci -m appendd
114 echo % tranplant
115 hg transplant -m 1
116 cd ..
@@ -129,3 +129,10 b' 0282d5fbbe02 transplanted to 77418277ccb'
129 added
129 added
130 bar
130 bar
131 foo
131 foo
132 % test transplant merge
133 adding a
134 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
135 created new head
136 % tranplant
137 applying 42dc4432fd35
138 1:42dc4432fd35 merged at a9f4acbac129
General Comments 0
You need to be logged in to leave comments. Login now