comparison mercurial/strip.py @ 51690:493034cc3265

black: format the codebase with 23.3.0 The CI has moved to 23.3.0, which is the last version that supports 3.7 at runtime, so we should honor this change. # skip-blame mass-reformating only
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 18 Jul 2024 12:36:12 +0200
parents 18c8c18993f0
children 7f0cb9ee0534
comparison
equal deleted inserted replaced
51689:39e2b2d062c1 51690:493034cc3265
61 force=None, 61 force=None,
62 bookmarks=None, 62 bookmarks=None,
63 soft=False, 63 soft=False,
64 ): 64 ):
65 with repo.wlock(), repo.lock(): 65 with repo.wlock(), repo.lock():
66
67 if update: 66 if update:
68 checklocalchanges(repo, force=force) 67 checklocalchanges(repo, force=force)
69 urev = _findupdatetarget(repo, revs) 68 urev = _findupdatetarget(repo, revs)
70 hg.clean(repo, urev) 69 hg.clean(repo, urev)
71 repo.dirstate.write(repo.currenttransaction()) 70 repo.dirstate.write(repo.currenttransaction())