mirror of
https://github.com/golang/go.git
synced 2025-11-06 11:40:59 +00:00
gofmt -r 'α[β:len(α)] -> α[β:]' -w test/bench
except chameneosredux which i know is being edited require gofmt for test/bench R=r https://golang.org/cl/157110
This commit is contained in:
parent
7ada6018a7
commit
19dae0799b
15 changed files with 257 additions and 262 deletions
|
|
@ -607,7 +607,7 @@ def RelativePath(path, cwd):
|
|||
|
||||
# Check that gofmt run on the list of files does not change them
|
||||
def CheckGofmt(ui, repo, files, just_warn=False):
|
||||
files = [f for f in files if f.startswith('src/') and f.endswith('.go')]
|
||||
files = [f for f in files if (f.startswith('src/') or f.startswith('test/bench/')) and f.endswith('.go')]
|
||||
if not files:
|
||||
return
|
||||
cwd = os.getcwd()
|
||||
|
|
@ -1082,6 +1082,7 @@ def sync(ui, repo, **opts):
|
|||
err = commands.postincoming(ui, repo, modheads, True, "tip")
|
||||
if err:
|
||||
return err
|
||||
commands.update(ui, repo)
|
||||
sync_changes(ui, repo)
|
||||
|
||||
def sync_note(msg):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue