Skip to content
Snippets Groups Projects
Commit 2802bedb authored by Matt Mackall's avatar Matt Mackall
Browse files

strip: fix last unprotected mq reference (issue4097)

parent 22154ec6
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,9 @@
if update:
checklocalchanges(repo, force=force)
urev, p2 = repo.changelog.parents(revs[0])
if p2 != nullid and p2 in [x.node for x in repo.mq.applied]:
if (util.safehasattr(repo, 'mq') and
p2 != nullid
and p2 in [x.node for x in repo.mq.applied]):
urev = p2
hg.clean(repo, urev)
repo.dirstate.write()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment