Submitter | Simon Farnsworth |
---|---|
Date | Feb. 15, 2017, 10:06 p.m. |
Message ID | <36ad17f00656ef853e0b.1487196411@devvm022.lla2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/18517/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1203,8 +1203,13 @@ if pycompat.osname == 'nt': checkosfilename = checkwinfilename + timer = time.clock else: checkosfilename = platform.checkosfilename + timer = time.time + +if safehasattr(time, "perf_counter"): + timer = time.perf_counter def makelock(info, pathname): try: