Nico von Geyso
9d0015f096
added valgrind python suppression file
...
To start a valgrind memory check use the following command:
valgrind -v --leak-check=full --suppressions=misc/valgrind-python.supp python -E -tt ./setup.py test
If your python installation is not compiled with valgrind option, you get as well tons of false-positive leaks
in valgrind. Just check for git_* function the the output. Have in my that circular memory dependencies can
not easily be found with this approach.
2013-03-10 18:58:42 +01:00
Nico von Geyso
5ed77671b2
fixed compiler warnings
2013-03-10 18:58:42 +01:00
Valentin Haenel
33638b66e2
the extension compiles to _pygit2.so, so ignore that too
2013-03-09 13:02:48 +01:00
J. David Ibáñez
49f26c38ad
Merge remote-tracking branch 'esc/refactor/install_docs'
2013-03-09 12:43:58 +01:00
J. David Ibáñez
35ecb718c1
Merge remote-tracking branch 'esc/pep8/setup.py'
2013-03-09 12:41:17 +01:00
J. David Ibáñez
27aba1f3c8
Update to changes in libgit2 concerning refs
...
Two methods have been drop:
- Repository.packall_references
- Reference.reload
The unit tests have been commented until we wrap the new reference
database from libgit2.
2013-03-09 12:36:58 +01:00
Valentin Haenel
2ffb39397d
syntax highlighting for shell commands in sphinx
2013-03-08 22:08:37 +01:00
Valentin Haenel
8d8416e083
pep8 fixes for setup.py
...
as reported by flake8
2013-03-08 22:02:34 +01:00
Nico von Geyso
86b063fbd0
fixed assert for diff.find_similiar test
2013-03-04 19:32:12 +01:00
Nico von Geyso
da4abb78cb
added test data for diff.find_similiar
2013-03-04 18:37:45 +01:00
Nico von Geyso
204fbd9cbb
diff - use generator instead of list
2013-03-04 16:37:59 +01:00
Nico von Geyso
2771c8a150
added assertAll and assertAny for test cases
2013-03-04 15:44:17 +01:00
Nico von Geyso
996663c97d
diff - use new memory alloc macros
2013-03-04 11:18:58 +01:00
Nico von Geyso
4b89994ff4
memory allocation helper macros
2013-03-04 11:18:11 +01:00
Nico von Geyso
a19a3d2515
diff - use old fashioned iterators instead of callback based ones
2013-03-04 10:39:44 +01:00
J. David Ibáñez
e88dc49f1e
_pygit2.init_repository doesn't use keyword args
2013-03-03 14:49:52 +01:00
J. David Ibáñez
9ffc14148e
Now we have a Repository class written in Python
2013-03-03 14:44:42 +01:00
J. David Ibáñez
29ce23c0d5
Update copyright
2013-03-02 12:16:16 +01:00
J. David Ibáñez
a96d494747
Coding style
...
Including:
- Lines longer than 79 chars
- Spaces at the end of line
- Wrong indentation
- Comma not followed by an space
- C++ style comments: //
2013-03-02 11:40:42 +01:00
J. David Ibáñez
a80e989377
Merge remote-tracking branch 'esc/docs/fix_syntax_highlight'
2013-03-02 10:23:43 +01:00
J. David Ibáñez
6fcd19eb0b
Merge remote-tracking branch 'esc/feature/init_repository_keywordargs'
2013-03-01 22:14:48 +01:00
J. David Ibáñez
bdb655787f
Fix build after latest changes in libgit2
2013-03-01 22:11:16 +01:00
Valentin Haenel
d937da9c8a
refactor the blob example
2013-02-28 21:10:23 +01:00
Valentin Haenel
ce5b884bbe
fix syntax hightlighting in docs
...
When using comments in a pycon session, comments must be prefixed with standard
console prompt (>>>) for pygments syntax highlighting to work.
2013-02-28 21:05:24 +01:00
Valentin Haenel
db02a2dbb6
document new ways to init a repo
2013-02-28 20:13:28 +01:00
Valentin Haenel
a41f59deb3
tests for keyword arg init_repository
2013-02-28 20:05:19 +01:00
Valentin Haenel
25947338b8
allow for keyword args in init_repository
...
This implements five ways to init a repo:
import pygit2 as git
git.init_repository("/tmp/foo/")
git.init_repository("/tmp/foo/", True)
git.init_repository("/tmp/foo/", False)
git.init_repository("/tmp/foo/", bare=True)
git.init_repository("/tmp/foo/", bare=False)
Since one is still able to pass the bare as a positional argument, this change
is perfectly backwards compatible. All existing code will continue to work.
2013-02-28 20:05:19 +01:00
J. David Ibáñez
276a6dbe2a
Merge remote-tracking branch 'cholin/features/checkout'
...
Conflicts:
src/pygit2.c
2013-02-19 22:38:13 +01:00
J. David Ibáñez
933e02ee5c
Cosmetic fix to setup.py
2013-02-19 10:53:41 +01:00
J. David Ibáñez
7e7cc6f416
Merge remote-tracking branch 'cboos/bdist_wininst'
2013-02-19 10:39:42 +01:00
Christian Boos
bcf48321ee
setup: using u'...' breaks for Python 3.[0-2].
2013-02-18 21:03:19 +01:00
Christian Boos
c4fa231df3
setup: Emacs actually don't like UTF-8, prefers utf-8
2013-02-18 20:58:43 +01:00
Christian Boos
67f68d2234
Fix setup.py so that bdist_wininst works.
...
Leaving the maintainer's name as a string (as opposed to a unicode)
was triggering a UnicodeDecodeError when running bdist_wininst with
Python 2.7.3
2013-02-18 20:51:06 +01:00
Christian Boos
4e14c1e543
update version to 0.17.4dev (once 0.17.3 is released, it's no longer 0.17.3)
2013-02-18 20:46:02 +01:00
J. David Ibáñez
ed66578029
Remove __libgit2_version__ because it is a dup
...
We already have LIBGIT2_VERSION
2013-02-17 22:46:11 +01:00
J. David Ibáñez
c7fe7e2844
Merge remote-tracking branch 'cboos/libgit2_version'
2013-02-17 22:40:49 +01:00
Nico von Geyso
1b5bf479ff
added functionality to checkout from index
2013-02-17 17:30:34 +01:00
Nico von Geyso
b828eb926f
added functionality to checkout from HEAD
2013-02-17 17:30:34 +01:00
Nico von Geyso
db5e1443b6
added tests for Repo.checkout()
2013-02-17 17:30:34 +01:00
Nico von Geyso
fbab2953de
new Repository.checkout method
2013-02-17 17:30:34 +01:00
Nico von Geyso
270fa59e5b
added bye.txt and new to testrepo i18n branch
2013-02-17 17:30:34 +01:00
Nico von Geyso
35230d06b8
initialize py_stats to NULL
2013-02-17 17:30:34 +01:00
Nico von Geyso
673053dc71
added GIT_CHECKOUT_* constants
2013-02-17 17:30:34 +01:00
J. David Ibáñez
826409b3db
tests: add remote to the test suite
2013-02-17 17:30:34 +01:00
J. David Ibáñez
d8026493cf
tests: add remote to the test suite
2013-02-17 17:29:38 +01:00
Christian Boos
64ae9e19f4
Use libgit2 LIBGIT2_VER* constants directly instead of git_libgit2_version() call.
2013-02-17 12:52:36 +01:00
Christian Boos
8f843beecf
Add pygit2.__libgit2_version__ to retrieve git_libgit2_version() info.
2013-02-17 12:21:15 +01:00
Christian Boos
bd62fded03
Add _pygit2 constants for libgit2 version information.
2013-02-17 11:33:20 +01:00
Nico von Geyso
0823621bb4
renamed remote_create() to create_remote()
2013-02-16 21:58:42 +01:00
Nico von Geyso
9c9e0f9755
added tests for remote.fetch()
2013-02-16 21:56:34 +01:00