diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-08-07 16:22:00 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-06-06 14:27:59 +0200 |
commit | f717975c6002ded7cf6a00719d05cb9ef66b67c5 (patch) | |
tree | 3efa1241c99d491702ffae84d47fcad04bc3c18f /tests/test_GitRepository.py | |
parent | fa414e5874cb6e286eba70efdcb0d3168639ca88 (diff) | |
download | git-buildpackage-f717975c6002ded7cf6a00719d05cb9ef66b67c5.tar.gz git-buildpackage-f717975c6002ded7cf6a00719d05cb9ef66b67c5.tar.bz2 git-buildpackage-f717975c6002ded7cf6a00719d05cb9ef66b67c5.zip |
GitRepository/get_commit_info: add patchname to info
Add a new 'patchname' field to the information returned by
get_commit_info. That is, the subject in a sanitized format, similar to
what git-format-patch uses.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests/test_GitRepository.py')
-rw-r--r-- | tests/test_GitRepository.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index bec08368..be522c97 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -442,6 +442,8 @@ def test_get_commit_info(): True >>> (now - datetime.fromtimestamp(int(info['committer'].date.split()[0]))).seconds < 10 True + >>> info['patchname'] + 'foo' >>> info['files'] defaultdict(<type 'list'>, {'M': ['testfile']}) """ |