From 2da2b90e6930023ec5739ae0b714bbdb30874583 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 15 Oct 2009 12:09:16 +0200 Subject: repo: removed a few methods because of redundancy or because it will be obsolete once the interface overhaul is finished. This commit is just intermediate --- CHANGES | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'CHANGES') diff --git a/CHANGES b/CHANGES index 456423d4..04d9b4c9 100644 --- a/CHANGES +++ b/CHANGES @@ -44,9 +44,13 @@ Repo of the active branch. * tree method now requires a Ref instance as input and defaults to the active_branche instead of master -* Removed 'log' method as it as effectively the same as the 'commits' method +* Removed the following methods: + - 'log' method as it as effectively the same as the 'commits' method + - 'commits_since' as it is just a flag given to rev-list in Commit.iter_items + - 'commit_count' as it was just a redirection to the respective commit method * 'commits' method has no max-count of returned commits anymore, it now behaves like git-rev-list + Diff ---- -- cgit v1.2.1 From 9ce1193c851e98293a237ad3d2d87725c501e89f Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 15 Oct 2009 14:11:34 +0200 Subject: Added Commit.iter_parents to iterate all parents Renamed Commit.commits to iter_commits repo: assured proper use of the terms revision ( rev ) and reference ( ref ) --- CHANGES | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CHANGES') diff --git a/CHANGES b/CHANGES index 04d9b4c9..83156ecf 100644 --- a/CHANGES +++ b/CHANGES @@ -23,6 +23,11 @@ General * All dates, like authored_date and committer_date, are stored as seconds since epoc to consume less memory - they can be converted using time.gmtime in a more suitable presentation format if needed. +* Named method parameters changed on a wide scale to unify their use. Now git specific + terms are used everywhere, such as "Reference" ( ref ) and "Revision" ( rev ). + Prevously multiple terms where used making it harder to know which type was allowed + or not. + Item Iteration -------------- @@ -48,6 +53,8 @@ Repo - 'log' method as it as effectively the same as the 'commits' method - 'commits_since' as it is just a flag given to rev-list in Commit.iter_items - 'commit_count' as it was just a redirection to the respective commit method +* Renamed commits to iter_commits to improve the performance, adjusted signature + to be more versatile * 'commits' method has no max-count of returned commits anymore, it now behaves like git-rev-list -- cgit v1.2.1 From 9f51eeb2f9a1efe22e45f7a1f7b963100f2f8e6b Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 15 Oct 2009 14:56:20 +0200 Subject: repo: removed commits_between but added a note about how this can be achieved using the iter_commits method; reorganized methods within the type as a start for more interface changes --- CHANGES | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CHANGES') diff --git a/CHANGES b/CHANGES index 83156ecf..f2056ea1 100644 --- a/CHANGES +++ b/CHANGES @@ -53,11 +53,12 @@ Repo - 'log' method as it as effectively the same as the 'commits' method - 'commits_since' as it is just a flag given to rev-list in Commit.iter_items - 'commit_count' as it was just a redirection to the respective commit method + - 'commits_between', replaced by a note on the iter_commits method as it can + achieve the same thing * Renamed commits to iter_commits to improve the performance, adjusted signature to be more versatile * 'commits' method has no max-count of returned commits anymore, it now behaves like git-rev-list - Diff ---- -- cgit v1.2.1 From 806450db9b2c4a829558557ac90bd7596a0654e0 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 15 Oct 2009 16:13:51 +0200 Subject: repo.commit_delta_base: removed --- CHANGES | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES') diff --git a/CHANGES b/CHANGES index f2056ea1..296c0fe8 100644 --- a/CHANGES +++ b/CHANGES @@ -55,6 +55,10 @@ Repo - 'commit_count' as it was just a redirection to the respective commit method - 'commits_between', replaced by a note on the iter_commits method as it can achieve the same thing + - 'commit_delta_from' as it was a very special case by comparing two different + repositories which are likely to have completly different commits. For + related repositories, i.e. clones, git-rev-list would be sufficient to find + commits that would need to be transferred for example. * Renamed commits to iter_commits to improve the performance, adjusted signature to be more versatile * 'commits' method has no max-count of returned commits anymore, it now behaves -- cgit v1.2.1 From 00c5497f190172765cc7a53ff9d8852a26b91676 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 15 Oct 2009 16:52:20 +0200 Subject: repo: made init and clone methods less specific, previously they wanted to do it 'barely' only. New method names closely follow the default git command names --- CHANGES | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'CHANGES') diff --git a/CHANGES b/CHANGES index 296c0fe8..22fe3e28 100644 --- a/CHANGES +++ b/CHANGES @@ -59,7 +59,12 @@ Repo repositories which are likely to have completly different commits. For related repositories, i.e. clones, git-rev-list would be sufficient to find commits that would need to be transferred for example. -* Renamed commits to iter_commits to improve the performance, adjusted signature + - 'create' method which equals the 'init' method's functionality +* Renamed the following methods: + - commits to iter_commits to improve the performance, adjusted signature + - init_bare to init, implying less about the options to be used + - fork_bare to clone, as it was to represent general clone functionality, but implied + a bare clone to be more versatile * 'commits' method has no max-count of returned commits anymore, it now behaves like git-rev-list -- cgit v1.2.1 From b67bd4c730273a9b6cce49a8444fb54e654de540 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 15 Oct 2009 18:05:28 +0200 Subject: Improved archive function by allowing it to directly write to an output stream - previously it would cache everything to memory and try to provide zipping functionality itself gitcmd: allows the output stream to be set explicitly which is mainly useful for archiving operations --- CHANGES | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGES') diff --git a/CHANGES b/CHANGES index 22fe3e28..babf2733 100644 --- a/CHANGES +++ b/CHANGES @@ -64,8 +64,8 @@ Repo - commits to iter_commits to improve the performance, adjusted signature - init_bare to init, implying less about the options to be used - fork_bare to clone, as it was to represent general clone functionality, but implied - a bare clone - to be more versatile + a bare clone to be more versatile + - archive_tar_gz and archive_tar and replaced by archive method with different signature * 'commits' method has no max-count of returned commits anymore, it now behaves like git-rev-list -- cgit v1.2.1