Show More
@@ -264,12 +264,10 b' def update(repo, node, branchmerge=False' | |||||
264 | # we don't need to do any magic, just jump to the new rev |
|
264 | # we don't need to do any magic, just jump to the new rev | |
265 | p1, p2 = p2, nullid |
|
265 | p1, p2 = p2, nullid | |
266 |
|
266 | |||
267 | xp1 = hex(p1) |
|
267 | xp1, xp2 = hex(p1), hex(p2) | |
268 | xp2 = hex(p2) |
|
268 | if p2 == nullid: xp2 = '' | |
269 | if p2 == nullid: xxp2 = '' |
|
|||
270 | else: xxp2 = xp2 |
|
|||
271 |
|
269 | |||
272 |
repo.hook('preupdate', throw=True, parent1=xp1, parent2= |
|
270 | repo.hook('preupdate', throw=True, parent1=xp1, parent2=xp2) | |
273 |
|
271 | |||
274 | # update files |
|
272 | # update files | |
275 | updated, merged, removed, unresolved = 0, 0, 0, 0 |
|
273 | updated, merged, removed, unresolved = 0, 0, 0, 0 | |
@@ -361,6 +359,6 b' def update(repo, node, branchmerge=False' | |||||
361 | repo.ui.status(_("There are unresolved merges with" |
|
359 | repo.ui.status(_("There are unresolved merges with" | |
362 | " locally modified files.\n")) |
|
360 | " locally modified files.\n")) | |
363 |
|
361 | |||
364 |
repo.hook('update', parent1=xp1, parent2= |
|
362 | repo.hook('update', parent1=xp1, parent2=xp2, error=unresolved) | |
365 | return unresolved |
|
363 | return unresolved | |
366 |
|
364 |
General Comments 0
You need to be logged in to leave comments.
Login now