You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
7.3 KiB

Improve listing performance by using go-git (#6478) * Use go-git for tree reading and commit info lookup. Signed-off-by: Filip Navara <navara@emclient.com> * Use TreeEntry.IsRegular() instead of ObjectType that was removed. Signed-off-by: Filip Navara <navara@emclient.com> * Use the treePath to optimize commit info search. Signed-off-by: Filip Navara <navara@emclient.com> * Extract the latest commit at treePath along with the other commits. Signed-off-by: Filip Navara <navara@emclient.com> * Fix listing commit info for a directory that was created in one commit and never modified after. Signed-off-by: Filip Navara <navara@emclient.com> * Avoid nearly all external 'git' invocations when doing directory listing (.editorconfig code path is still hit). Signed-off-by: Filip Navara <navara@emclient.com> * Use go-git for reading blobs. Signed-off-by: Filip Navara <navara@emclient.com> * Make SHA1 type alias for plumbing.Hash in go-git. Signed-off-by: Filip Navara <navara@emclient.com> * Make Signature type alias for object.Signature in go-git. Signed-off-by: Filip Navara <navara@emclient.com> * Fix GetCommitsInfo for repository with only one commit. Signed-off-by: Filip Navara <navara@emclient.com> * Fix PGP signature verification. Signed-off-by: Filip Navara <navara@emclient.com> * Fix issues with walking commit graph across merges. Signed-off-by: Filip Navara <navara@emclient.com> * Fix typo in condition. Signed-off-by: Filip Navara <navara@emclient.com> * Speed up loading branch list by keeping the repository reference (and thus all the loaded packfile indexes). Signed-off-by: Filip Navara <navara@emclient.com> * Fix lising submodules. Signed-off-by: Filip Navara <navara@emclient.com> * Fix build Signed-off-by: Filip Navara <navara@emclient.com> * Add back commit cache because of name-rev Signed-off-by: Filip Navara <navara@emclient.com> * Fix tests Signed-off-by: Filip Navara <navara@emclient.com> * Fix code style * Fix spelling * Address PR feedback Signed-off-by: Filip Navara <navara@emclient.com> * Update vendor module list Signed-off-by: Filip Navara <navara@emclient.com> * Fix getting trees by commit id Signed-off-by: Filip Navara <navara@emclient.com> * Fix remaining unit test failures * Fix GetTreeBySHA * Avoid running `git name-rev` if not necessary Signed-off-by: Filip Navara <navara@emclient.com> * Move Branch code to git module * Clean up GPG signature verification and fix it for tagged commits * Address PR feedback (import formatting, copyright headers) * Make blob lookup by SHA working * Update tests to use public API * Allow getting content from any type of object through the blob interface * Change test to actually expect the object content that is in the GIT repository * Change one more test to actually expect the object content that is in the GIT repository * Add comments
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
  1. module code.gitea.io/gitea
  2. go 1.12
  3. require (
  4. github.com/PuerkitoBio/goquery v0.0.0-20170324135448-ed7d758e9a34
  5. github.com/RoaringBitmap/roaring v0.4.7 // indirect
  6. github.com/Unknwon/cae v0.0.0-20160715032808-c6aac99ea2ca
  7. github.com/Unknwon/com v0.0.0-20190321035513-0fed4efef755
  8. github.com/Unknwon/i18n v0.0.0-20171114194641-b64d33658966
  9. github.com/Unknwon/paginater v0.0.0-20151104151617-7748a72e0141
  10. github.com/andybalholm/cascadia v0.0.0-20161224141413-349dd0209470 // indirect
  11. github.com/bgentry/speakeasy v0.1.0 // indirect
  12. github.com/blevesearch/bleve v0.0.0-20190214220507-05d86ea8f6e3
  13. github.com/blevesearch/blevex v0.0.0-20180227211930-4b158bb555a3 // indirect
  14. github.com/blevesearch/go-porterstemmer v0.0.0-20141230013033-23a2c8e5cf1f // indirect
  15. github.com/blevesearch/segment v0.0.0-20160105220820-db70c57796cc // indirect
  16. github.com/boombuler/barcode v0.0.0-20161226211916-fe0f26ff6d26 // indirect
  17. github.com/bradfitz/gomemcache v0.0.0-20160117192205-fb1f79c6b65a // indirect
  18. github.com/chaseadamsio/goorgeous v0.0.0-20170901132237-098da33fde5f
  19. github.com/couchbase/gomemcached v0.0.0-20181122193126-5125a94a666c // indirect
  20. github.com/couchbase/goutils v0.0.0-20180530154633-e865a1461c8a // indirect
  21. github.com/couchbase/vellum v0.0.0-20190111184608-e91b68ff3efe // indirect
  22. github.com/couchbaselabs/go-couchbase v0.0.0-20190117181324-d904413d884d // indirect
  23. github.com/cznic/b v0.0.0-20181122101859-a26611c4d92d // indirect
  24. github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
  25. github.com/cznic/strutil v0.0.0-20181122101858-275e90344537 // indirect
  26. github.com/denisenkom/go-mssqldb v0.0.0-20190724012636-11b2859924c1
  27. github.com/dgrijalva/jwt-go v3.2.0+incompatible
  28. github.com/edsrzf/mmap-go v0.0.0-20170320065105-0bce6a688712 // indirect
  29. github.com/emirpasic/gods v1.12.0
  30. github.com/etcd-io/bbolt v1.3.2 // indirect
  31. github.com/ethantkoenig/rupture v0.0.0-20180203182544-0a76f03a811a
  32. github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a // indirect
  33. github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51 // indirect
  34. github.com/facebookgo/freeport v0.0.0-20150612182905-d4adf43b75b9 // indirect
  35. github.com/facebookgo/grace v0.0.0-20160926231715-5729e484473f
  36. github.com/facebookgo/httpdown v0.0.0-20160323221027-a3b1354551a2 // indirect
  37. github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
  38. github.com/facebookgo/stats v0.0.0-20151006221625-1b76add642e4 // indirect
  39. github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870 // indirect
  40. github.com/gliderlabs/ssh v0.2.2
  41. github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd // indirect
  42. github.com/glycerine/goconvey v0.0.0-20190315024820-982ee783a72e // indirect
  43. github.com/go-macaron/binding v0.0.0-20160711225916-9440f336b443
  44. github.com/go-macaron/cache v0.0.0-20151013081102-561735312776
  45. github.com/go-macaron/captcha v0.0.0-20190710000913-8dc5911259df
  46. github.com/go-macaron/cors v0.0.0-20190309005821-6fd6a9bfe14e9
  47. github.com/go-macaron/csrf v0.0.0-20190131233648-3751b136073c
  48. github.com/go-macaron/i18n v0.0.0-20190131234336-56731837a73b
  49. github.com/go-macaron/inject v0.0.0-20160627170012-d8a0b8677191
  50. github.com/go-macaron/session v0.0.0-20190131233854-0a0a789bf193
  51. github.com/go-macaron/toolbox v0.0.0-20180818072302-a77f45a7ce90
  52. github.com/go-redis/redis v6.15.2+incompatible
  53. github.com/go-sql-driver/mysql v1.4.1
  54. github.com/go-xorm/xorm v0.7.4
  55. github.com/gogits/chardet v0.0.0-20150115103509-2404f7772561
  56. github.com/gogs/cron v0.0.0-20171120032916-9f6c956d3e14
  57. github.com/google/go-github/v24 v24.0.1
  58. github.com/gorilla/context v1.1.1
  59. github.com/issue9/assert v1.3.2 // indirect
  60. github.com/issue9/identicon v0.0.0-20160320065130-d36b54562f4c
  61. github.com/jaytaylor/html2text v0.0.0-20160923191438-8fb95d837f7d
  62. github.com/jmhodges/levigo v1.0.0 // indirect
  63. github.com/joho/godotenv v1.3.0 // indirect
  64. github.com/kballard/go-shellquote v0.0.0-20170619183022-cd60e84ee657
  65. github.com/keybase/go-crypto v0.0.0-20170605145657-00ac4db533f6
  66. github.com/klauspost/compress v0.0.0-20161025140425-8df558b6cb6f
  67. github.com/klauspost/cpuid v0.0.0-20160302075316-09cded8978dc // indirect
  68. github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6 // indirect
  69. github.com/lafriks/xormstore v1.1.0
  70. github.com/lib/pq v1.1.0
  71. github.com/lunny/dingtalk_webhook v0.0.0-20171025031554-e3534c89ef96
  72. github.com/lunny/levelqueue v0.0.0-20190217115915-02b525a4418e
  73. github.com/lunny/log v0.0.0-20160921050905-7887c61bf0de // indirect
  74. github.com/lunny/nodb v0.0.0-20160621015157-fc1ef06ad4af // indirect
  75. github.com/markbates/goth v1.49.0
  76. github.com/mattn/go-isatty v0.0.7
  77. github.com/mattn/go-oci8 v0.0.0-20190320171441-14ba190cf52d // indirect
  78. github.com/mattn/go-sqlite3 v1.10.0
  79. github.com/mcuadros/go-version v0.0.0-20190308113854-92cdf37c5b75
  80. github.com/microcosm-cc/bluemonday v0.0.0-20161012083705-f77f16ffc87a
  81. github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae // indirect
  82. github.com/msteinert/pam v0.0.0-20151204160544-02ccfbfaf0cc
  83. github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5
  84. github.com/oliamb/cutter v0.2.2
  85. github.com/philhofer/fwd v1.0.0 // indirect
  86. github.com/pquerna/otp v0.0.0-20160912161815-54653902c20e
  87. github.com/prometheus/client_golang v0.9.3
  88. github.com/remyoudompheng/bigfft v0.0.0-20190321074620-2f0d2b0e0001 // indirect
  89. github.com/russross/blackfriday v0.0.0-20180428102519-11635eb403ff
  90. github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect
  91. github.com/satori/go.uuid v1.2.0
  92. github.com/sergi/go-diff v1.0.0
  93. github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b // indirect
  94. github.com/shurcooL/sanitized_anchor_name v0.0.0-20160918041101-1dba4b3954bc // indirect
  95. github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd
  96. github.com/siddontang/go-snappy v0.0.0-20140704025258-d8f7bb82a96d // indirect
  97. github.com/smartystreets/goconvey v0.0.0-20190306220146-200a235640ff // indirect
  98. github.com/steveyen/gtreap v0.0.0-20150807155958-0abe01ef9be2 // indirect
  99. github.com/stretchr/testify v1.3.0
  100. github.com/tecbot/gorocksdb v0.0.0-20181010114359-8752a9433481 // indirect
  101. github.com/tinylib/msgp v0.0.0-20180516164116-c8cf64dff200 // indirect
  102. github.com/tstranex/u2f v1.0.0
  103. github.com/urfave/cli v1.20.0
  104. github.com/willf/bitset v0.0.0-20180426185212-8ce1146b8621 // indirect
  105. github.com/yohcop/openid-go v0.0.0-20160914080427-2c050d2dae53
  106. go.etcd.io/bbolt v1.3.2 // indirect
  107. golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
  108. golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
  109. golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421
  110. golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3
  111. golang.org/x/text v0.3.2
  112. golang.org/x/tools v0.0.0-20190731214159-1e85ed8060aa // indirect
  113. gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
  114. gopkg.in/asn1-ber.v1 v1.0.0-20150924051756-4e86f4367175 // indirect
  115. gopkg.in/bufio.v1 v1.0.0-20140618132640-567b2bfa514e // indirect
  116. gopkg.in/editorconfig/editorconfig-core-go.v1 v1.3.0
  117. gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
  118. gopkg.in/ini.v1 v1.42.0
  119. gopkg.in/ldap.v3 v3.0.2
  120. gopkg.in/macaron.v1 v1.3.2
  121. gopkg.in/redis.v2 v2.3.2 // indirect
  122. gopkg.in/src-d/go-billy.v4 v4.3.2
  123. gopkg.in/src-d/go-git.v4 v4.13.1
  124. gopkg.in/stretchr/testify.v1 v1.2.2 // indirect
  125. gopkg.in/testfixtures.v2 v2.5.0
  126. mvdan.cc/xurls/v2 v2.0.0
  127. strk.kbt.io/projects/go/libravatar v0.0.0-20160628055650-5eed7bff870a
  128. xorm.io/builder v0.3.5
  129. xorm.io/core v0.6.3
  130. )