restack: use commit hash internally

Summary: This removes a false positive detection of "revision number" usage.

Reviewed By: singhsrb

Differential Revision: D16955289

fbshipit-source-id: 799b6e548ad08e9b9fdcc5d2c7ca792c9eb5684b
This commit is contained in:
Jun Wu 2019-08-22 12:57:45 -07:00 committed by Facebook Github Bot
parent 0668c348e3
commit 3e8db21b78

View File

@ -39,7 +39,7 @@ def restack(ui, repo, **rebaseopts):
# 3. Connect revs via changelog again to cover missing revs
revs = list(repo.revs("(draft() & ::%ld)::", revs))
rebaseopts["rev"] = [revsetlang.formatspec("%ld", revs)]
rebaseopts["rev"] = [ctx.hex() for ctx in repo.set("%ld", revs)]
rebaseopts["dest"] = "_destrestack(SRC)"