Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/sagemath/trac-git-plugin

Git Plugin for Trac
https://github.com/sagemath/trac-git-plugin

Merge pull request #12 from andersk/deforkify

Use git cat-file --batch and git log --name-status to avoid repeated fork+exec

722342ef03639415d7a1dc0230239d34cb97d988 authored about 13 years ago by Herbert Valerio Riedel <[email protected]>
last_change: Use git log --name-status to avoid repeated fork+exec

Signed-off-by: Anders Kaseorg <[email protected]>

9541c2acb4b2c9df2d6ca37e299161501c370244 authored about 13 years ago by Anders Kaseorg <[email protected]>
Use git cat-file --batch, to avoid repeated fork+exec

Signed-off-by: Anders Kaseorg <[email protected]>

0283ffb60178078a2d2d9a83137c83cdd092cc4c authored about 13 years ago by Anders Kaseorg <[email protected]>
GitCore: Abstract out __pipe

Signed-off-by: Anders Kaseorg <[email protected]>

aa80f4556bbb0ba68008ccf910418ade2fbeff55 authored about 13 years ago by Anders Kaseorg <[email protected]>
Relicence trac-git-plugin from GPL v2 to "3-clause BSD"

d7a50e261b5aff5a404c016f9153b2ed7ef4298e authored over 13 years ago by Herbert Valerio Riedel <[email protected]>
Add a check for empty repos.

2c2193164c4a79ff7c44cff47ffa3575a7bfd4b1 authored almost 14 years ago by Noah Kantrowitz <[email protected]>
Add a repo provider that uses a gitweb projects file.

f608b94c01dda74624d9f102663d807ec46173fe authored almost 14 years ago by Noah Kantrowitz <[email protected]>
Implement `Repository.get_path_url()`

Since git urls carry no path or revision information we always return
the same clone url regardl...

60cf7b857c894f56a9afeaff3574000c80852a96 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Merge branch 'rm-storage-del' of https://github.com/scbash/trac-git-plugin into scbash-rm-storage-del

22696128e1fd6cb7d56659db13df5127325fb288 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Provide `Repository.parent_revs()` and `Repository.children_revs()` for `ticket-1492-svgweb`

With this change and together with rblank's graph view implementation
we get a working git commi...

7c514e5ac96998a4a0d88e6e1b514556c40cd730 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Remove Storage.__del__

On some machines the log message caused "Write to closed fd" while
Python shutdown. It was neve...

7d3a04ea94742c4ed290cc7c02f87bf57f28c47c authored about 14 years ago by Stephen Bash <[email protected]>
Revert "Hopefully fix GitPlugin's broken caching behavior."

(due to unclear infinite-self-recursion issue)

This reverts commit f65bc126fd9d2926a81f0d0ae500...

672da40cca475e493861bb93ed25f9a2fd06b771 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Rename CachedChangeset2 to GitCachedChangeset and whitespace cleanups

(followup to 3da8eeacbb6e381748876069d1fcaa1d06a64120)

e56f7bbb870ba31dce0e6000f07aa6ce23a6da33 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Merge branch 'cached-get-branch' of http://github.com/scbash/trac-git-plugin into scbash-cached-get-branch

8b9e9043edeb62d263962dd064a189f040ffa4d8 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Hopefully fix GitPlugin's broken caching behavior.

This hopefully fixes all the "no such changeset" errors in Trac. Basically
trac-admin's changes...

f65bc126fd9d2926a81f0d0ae5009edc986c8cf3 authored about 14 years ago by Stephen Bash <[email protected]>
Rename `CachedRepository2` to `GitCachedRepository`

4d8d4473694866bb24ff4c3feb215b96012e62b9 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Extend CachedChangeset and modify CachedRepo for get_branches

Trac's CachedChangeset does not implement get_branches, which is
required to show branch informa...

3da8eeacbb6e381748876069d1fcaa1d06a64120 authored about 14 years ago by Stephen Bash <[email protected]>
Add display_rev to CachedRepository2

fb9a8daf746b293754db09c4dee5f00244bc666c authored about 14 years ago by Stephen Bash <[email protected]>
PyGIT: added `GitCore.__repr__` to help debugging, otherwise `GitCore.__getattr__` gets in the way.

5cbdfd9cde39b30c61a311fbe3a1c46992520cae authored about 14 years ago by Christian Boos <[email protected]>
Add backport of Python 2.6+'s `collections.namedtuple` and use it for the `RevCache` tuple.

d30c3ab3b963608ad46aba1973451ba20c09489c authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Increment version to 0.12.0.5

70713b1be329ae50debfe9bd7be9c4ab574e7984 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Fix bug in `Storage.ls_tree()` for git filenames containing TAB characters

bc7258d4f4a6a99deb503758ef108735ff140a85 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Reimplement git filesystem charset handling

Make use of the new encoding handling implemented in the
`PyGit.Storage`. So now Trac should alw...

35171676ba04bd1d6e4eb01f493864fdc94a8607 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
remove redundant `to_unicode` invocations

b93a90d3186011c706a9d2585e865b8e40518af6 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Add `git_fs_encoding` parameter to `Storage` and `StorageFactory`

This optional parameter allows to enable on-the-fly en/decoding of
bytestrings (as seen by git) ...

67d05ab0dcdac9f00504e6b254f2fc1cd6502fc2 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Increment version to 0.12.0.4

a891c74e3c6b1656dd75f66a7618b2a8eb54a433 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Minor cleanups recommended by pylint

Mostly whitespace changes

a5c350a844965f0d8177996b8179308217f3eb30 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Change logging priority of `disabled CachedRepository` from INFO to DEBUG

f5a9da3ce90f5ad571c6449f6a562737d8bfbbaf authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Add `Branches` property to changeset views.

The `Branches` property is rendered as links to the reachable
branch tips labeled by the branch ...

a6c16ead09fbc7cd8af492dcf8627b885dd26cf0 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Implement GitChangeset.get_branches()

This results in branch annotations in the timeline view.

For now, GitChangeset.get_branches() r...

fc6bf2c5d020cd032a8f97691ebc8904a497a6ff authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Code refactoring: introduce `RevCache` namedtuple instance to make code more readabale

8ec5adf96091fa7e88ec499ab95a4fdb696142c9 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Add reachable heads for each revision to revision cache

Also switch to `git rev-list --topo-order` traversal in order to avoid
a 2nd pass in Python.

694f99387422fdb96a3660783b2ba68dfccb15cc authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Add support for abbreviated wiki sha ids

This introduces a new option `wiki_shortrev_len`, which defines the
minimum length for which hex...

23afc8ee8908bf4ae0da38d78604d85b5736539e authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Implement `Repository.display_rev()` for displaying abbreviating sha ids

...as suggested in http://trac-hacks.org/ticket/2685#comment:12

3551f77861d14314771400ed2ee68c425d80e5b7 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Refactor IPropertyRender component and improve display of merge commits

Merge commit display code has been "reused" from TracMercurial

5441bae807dcc946a865e94f2573594f22070f11 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Make GitError message more verbose in Storage.git_version()

Addresses issue raised in http://trac-hacks.org/ticket/7246

c50d90dacb59001fc1d40f92f55a187f2ef012f8 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Workaround for missing git submodules support

Without this workaround gitplugin triggers runtime exceptions.

See also http://trac-hacks.org/t...

9e9bcbd6cabff046df0ef3147c905fe26366c266 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
add `.gitignore` file

04972306a65d38607bf237bc8aed6d31b667b529 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
bump up version to 0.12.0.3

44cb43f67939d280ca047f6d2c63bd38c9e39618 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
`tracext.git.git_fs.py`: Untabify and convert to 4-space indentation according to PEP-8

4be6c4a5ba041dba4cb51e301895adddb511094f authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Add new options for customizing changeset owner/timestamp display

- `trac_user_rlookup` (disabled by default)
- `use_committer_id` (enabled by default)
- `use_...

1e8a1470527d24aa23c99bd10afcfca224115943 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
Clean up `setup.py` and add Trac >= 0.12 dependancy

52986437b322f52ed420df639212c071f12ef163 authored about 14 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: ported code from TracMercurial in trac:changeset:6461

ca75505a23f9dcc59e7018e4c0b35b0b1810b5ac authored almost 15 years ago by Herbert Valerio Riedel <[email protected]>
minor logging tweak

86be229de134fbbd17b8ca115f978e02f8a21a4e authored almost 15 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: decode git paths to unicode strings; fixes #5357

5da44cf0e15b6f08b189f7691e4dd61bc08c5e49 authored almost 15 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: format `git-committer` and `git-author` properties with `format_author` and `format_datetime`; fixes #5385

5fd9e124843a425644edf479aebf272cff97d120 authored almost 15 years ago by Herbert Valerio Riedel <[email protected]>
added setup.cfg

c1ff9aaac7f42fdaf4a1ada4b2e9a28bb8e0d035 authored almost 15 years ago by Herbert Valerio Riedel <[email protected]>
created 0.12/ branch, tweaked setup.py, and applied patch by [email protected] (see #6554)

5bcaddb2ae99c7ca943b2c817a99358d5ec1d214 authored almost 15 years ago by Herbert Valerio Riedel <[email protected]>
Use HEAD as the rev when rev=None. Closes: #5612

8c295406c91521f962864b85ced4a762080f4b82 authored over 15 years ago by John Hampton <[email protected]>
GitPlugin: omit `close_fds=True` on win32 platform (fixes #4227)

de4a69bccb754e5ccb114fe0817e529224369fd1 authored almost 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: whitespace cleanup (fixes #4815)

bbc1feb74df9913f400ac6f7dfa9353078314643 authored almost 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: avoid usage of StringIO wrappers throughout PyGIT.py where avoidable

a14e33d6c605c3e8846ca57f44001730b9f8cfb2 authored almost 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: optimiziation: make use of git's 1.5.6+ `tree-ls -l` feature for grabbing blob size instead of

individual `cat-file -s` calls; bump up minimum required git version to 1.5.6

3666f7f8e2041abb6948960537eea914e40b27d4 authored almost 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: minor optimization (use regex instead of string iteration)

386f4ae2ea5aa5ed54d3574cec1d978f64fb81fb authored almost 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: update the ''install_requires'' setting and bump the plugin version to 0.11.0.2

d5940e0618a845589c089afd364f0f82b84d7309 authored almost 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: cleanups; fix for leading whitespace in filename bug; better default for config variable `git_bin`

54912e7ac05cd8062e9c1399a89f21d5c1fa6b9d authored almost 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: avoid calling ls-tree with empty path argument

4633573a6751a8a4d8b2265e2f359cbaaaad78da authored almost 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: get rid of unecessary readlines() calls

d9e57d4d268fc699f90d802e43b20e9f08631802 authored almost 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: converted os.popen3() call to subprocess.Popen() and wait for process termination (addresses #3675)

d8f6c4a2de471f5e33002038e808fcb73a330b79 authored almost 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: fix exception on changesets that contain file-mode changes denoted by 'T'

de6186dad1c3af656c3b6eea168c80e2eba66f0a authored over 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: make `diff_tree` handle empty changesets (fixes #2807 and #3410)

f0f2f43b5df2031f5321ed1d0a8d4bcd02cbbb70 authored over 16 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: add (ignored) `path` argument to `previous_rev` method (fixes #3008)

1fbf30c16f57577cd867b5fceeb67674f56346b7 authored over 16 years ago by Herbert Valerio Riedel <[email protected]>
declare `namespace_packages` meta-data (addresses #2806)

db63a7dafc2e3fc4f9a46a1058a0841097adf1e0 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: added new option `git_bin` for providing a custom `git`

binary; made `git version` parsing more tolerant; minor fixes

2d904cfc37d527cadaea9ade1319866f0edf59b9 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: moved Trac version requirements into `setup.py` (inspired by trac:changeset:6573)

495f90e65e3dbcc07ad12547ba353bf10ec415f9 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: made default shortrev length configurable via new `git.shortrev_len` option (defaults to 7)

5640bec831e5415f0915068a98575fafaad2eb24 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: various cleanups and minor improvements

e3169a564ffee1498a2cb40cc87dad35c37afbdc authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: added simple GIT sanity check to constructor, in order to

catch bad `git_dir`s early

8be44996ad40c0f1840db17b0630a5e75e9c19b4 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: significantly reduced memory usage of revision cache by cutting down usage of `set` objects in favor of tuples in cache data structures, and

aggressively reusing sha strings

4d39ea4491a5eac11cde087bc09883479adad247 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: implemented internal `shortrev()` method to avoid having to waste cpu cycles with `fork+exec` to `git rev-parse --short`

d06a37a028868327f306cc4417ef68c87b1262ff authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: provided own `CachedRepository2` subclass with passed through `short_rev` method

eac8daadcc0aba164e5e6c851b57987866e81eca authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: add dummy `ignore_ancestory` parameter to `get_changes` method (fixes #2552)

c2dcb4bcb233bb2c070bf06a1e48b5e5c21282fd authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: made `git_version` a static method of `Storage`

8eacae81fa8c1462789caa9b591d4efc28fcd220 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: put in-place caching logic of `git-cat-file -s` and `git-cat-file commit` calls

925beec1434d6807a2547d53b0c558f5e7807c86 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: refactorized `git-core` execution by introducing a new class `GitCore`

3f5c93afa9b965c7ba49b23a6754a96e7ad5ad42 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: log error if GIT version '''not''' compatible...

34b295bbcdad51b533e6556ef14d08fb57d78298 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: added support for best-guess detection of renames in changeset-view

2d2b15e973add85b8915a0eddf5d0ae0c30894df authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: cleanups, factorizations, and minor fixes

e1c5655d14dec25c616e8164b6c4f65347866946 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: cleanups, factorizations, and minor fixes

3a76ddbf54fe7f18bb00da7e6984bd9c58b514be authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: implemented `get_last_modified` method

5f6d83415022fe9aacdfb772f9d8b0592dc5c700 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: cleanups, factorizations, and minor fixes

ff0ef4a0b7ee5f4115b9e845804b91a3cc0ca57e authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: refactorized option handling

fc5db0bf446180512a26735e79ca11743e31b980 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: allow to ''escape'' hashes by prepending `!`

d7ce2109dda0dd711f0a1a9c2542b07ec80dc064 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: parse timezone information of committer and author and print respective timestamps of properties in iso format

ae67d8f2a49d7c3c64c55ccb51c465ccc8715250 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: converted to use `tracext` package namespace (see trac:"TracDev/Proposals/Setuptools") and bumped version to `0.11.0.1`; from now on, for 0.11 this plugin needs to be enabled with

{{{
[components]
tracext.git.* = enabled
}}}

8fb6ee6eef878ef23be6b01bbd39dae7fac16760 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: minor cleanups, and fixed synchronization issue with !CachedRepository wrapping

6e8343a52acbb7eb8d83145af11a05096ddfb828 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin:

- factorized git execution
- implemented GIT version check (requires >= 1.5.2 now)

19dcc42974ae6a9d3000b8b86ae17d7a19af5a4b authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: use zero-termination mode of `diff-tree` (and thus avoid escaping newlines and tabs)

003336361f319de2ec75c86e4a1af932fe48ae3f authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: call popen3 with sequence instead of string as command, in order to avoid shell-overhead (addresses #746)

48f696d0ec431e652eb018e39f84a656ef2e9808 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: implemented "blame"/annotate support for 0.11

f48fefc4ac08ec9923e4d3b726d540f4954ec5f4 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
handle tags that point to git tag objects by performing an additional lookup to the actual commit object (addresses #789)

72b2808c9fdd0a668fb77e68329ac716f8b891e5 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
implemented `get_quickjump_targets' method; addresses #789

1c4606a8c831b8753b44e906129144699ec4ee1a authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
- changed ''next revision''/''previous revision'' to point to next/previous changeset in a flattened history as provided by `git-rev-list --all`

- implemented in-memory commit tree cache in order to speed up typical Trac repository access pa...

2cd58eaa0ce41077158ba4655d89d95802299a33 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: adapted plugin to 0.11 API changes

b706b48cc1e9e6291b29edd4c0e9bafdef238559 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
added code to aid profiling expensive git operations

07ea7702763278ef816c1fe3614684fe3d9e2110 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin: created new branch 0.11 off 0.10

139d7d959795f9acacdd106ef7d0f149f6a5105e authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
implemented syntax to recognize 40-character wide hex strings as commit sha sums and turn them into hyperlinks

Signed-Off-By: Herbert Valerio Riedel <[email protected]>

7132d6026c1d162b3453621f1a349df6fd22d866 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
GitPlugin:

- speeded up `get_history` and `rev_older_than`
- raise `NoSuchChangeset` exception if invalid ...

deee8969326ef7168b40f1b6ac4859344eb2b8d4 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
Add a quick hack to prevent code 500 errors and tracebacks when viewing deleted files.

Instead shows an empty file, for now.

Signed-Off-By: Hans Petter Jansson <[email protected]>
Signed-Off...

788e4c57eb6c7114fc22ae233afa78ce53db95e1 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>
Add a dummy get_last_modified() to avoid an exception in Trac.

Signed-Off-By: Hans Petter Jansson <[email protected]>
Signed-Off-By: Herbert Valerio Riedel <[email protected]>

360b785509a1095a97fe3adcd2a919c10f9e4826 authored almost 17 years ago by Herbert Valerio Riedel <[email protected]>