comparison mercurial/strip.py @ 51699:ca7bde5dbafb

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 7f0cb9ee0534
children f4733654f144
comparison
equal deleted inserted replaced
51698:b0a4de6c14f8 51699:ca7bde5dbafb
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())