diff --git a/hgext/rebase.py b/hgext/rebase.py
index 5c25fe7fb1e63a31ed082dfcb93673fa79cf081f_aGdleHQvcmViYXNlLnB5..2bac2d836ce004c69e1dabab78bd086111586f48_aGdleHQvcmViYXNlLnB5 100644
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -1017,7 +1017,7 @@
     # When collapsing in-place, the parent is the common ancestor, we
     # have to allow merging with it.
     stats = mergemod.update(repo, rev, True, True, base, collapse,
-                            labels=['dest', 'source'])
+                            labels=['dest', 'source'], wc=wctx)
     if collapse:
         copies.duplicatecopies(repo, wctx, rev, dest)
     else: