diff options
author | Lingchaox Xin <lingchaox.xin@intel.com> | 2013-06-20 09:34:01 +0800 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-09-04 22:32:55 +0200 |
commit | eca5a3365c5461519fd23ab2e85e5de9195da007 (patch) | |
tree | bcdd2f3f957799771b86d473e90c192cb6a1a84d /tests | |
parent | 07b30540133f193702190570b2a0e1819a327dff (diff) |
GitRepository.describe: add 'tags' and 'extra-match' options
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_GitRepository.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index 8dafc2a2..24bdae26 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -266,6 +266,12 @@ def test_describe(): >>> repo.describe('HEAD', pattern='foo*', always=True, abbrev=16) == sha[:16] True >>> tag = repo.describe('HEAD', longfmt=True, abbrev=16) == 'tag2-0-g%s' % sha[:16] + >>> repo.delete_tag('tag2') + >>> repo.describe('HEAD', tags=True) + 'tag' + >>> repo.describe('HEAD', tags=True, exact_match=True) + 'tag' + >>> repo.create_tag('tag2', msg='foo') """ def test_find_tag(): |