Re: Workflow on git with 2 branch with specifc code

2014-01-17 Thread Jon Seymour
On Sat, Jan 18, 2014 at 10:05 AM, brian m. carlson sand...@crustytoothpaste.net wrote: On Fri, Jan 17, 2014 at 10:14:28AM -0200, Gordon Freeman wrote: Hello guys, im Gordon. I have a question about workflow with git that i dont know if im doing it right. I have 1 repo with 2 branchs the

Re: git-svn troubles with calendarserver SVN repo

2013-12-01 Thread Jon Seymour
, Dec 2, 2013 at 5:03 PM, Matěj Cepl mc...@redhat.com wrote: On 30/11/13 09:54, Jon Seymour wrote: I have seen this behaviour, though never determined the root cause .Probably the simplest thing you can do without access to the server is to put your git svn fetch into a bash while loop, like so

Re: Git merge: conflict is expected, but not detected

2013-11-30 Thread Jon Seymour
From the perspective of topic there had been no change to the definition of bar(), hence there was no change to contribute to the eventual merge with master. One way to avoid this kind of problem is to avoid making (or cherry-picking) the same change on different branches, but instead use a merge

Re: git-svn troubles with calendarserver SVN repo

2013-11-30 Thread Jon Seymour
I have seen this behaviour, though never determined the root cause .Probably the simplest thing you can do without access to the server is to put your git svn fetch into a bash while loop, like so: while ! git svn fetch; do :; done; jon On Sat, Nov 30, 2013 at 10:14 AM, Matěj Cepl

Unexpected merge results in git-svn repo

2013-07-31 Thread Jon Seymour
I am getting some unexpected results from a merge and I'd like to understand why. I have two commits X and Y that I want to merge. git merge-base X Y # yields B git diff B X -- F # is empty git diff B Y -- F # contains the change I want merged git rev-list X ^B -- F # is empty git rev-list Y

Re: Unexpected merge results in git-svn repo

2013-07-31 Thread Jon Seymour
that sometimes occurs when git-svn pulls merges back from SVN. jon. On Wed, Jul 31, 2013 at 8:14 PM, Jon Seymour jon.seym...@gmail.com wrote: I am getting some unexpected results from a merge and I'd like to understand why. I have two commits X and Y that I want to merge. git merge-base X Y # yields B

Re: Recovering from a loss of sync between git and svn

2013-03-18 Thread Jon Seymour
Ah, answering my own question I can see git svn reset does exactly what I need. jon. On Mon, Mar 18, 2013 at 4:03 PM, Jon Seymour jon.seym...@gmail.com wrote: G'day, I managed to lose sync between the git-svn repo that I am using to track an svn repo. In particular, the git-svn repo

Re: Stopping git-svn pulling a particular branch

2012-09-28 Thread Jon Seymour
On Fri, Sep 28, 2012 at 2:58 PM, Jon Seymour jon.seym...@gmail.com wrote: G'day An svn developer created a branch from a subdirectory of the trunk rather than by copying trunk itself. I want to avoid pulling this branch into my git repo with git svn fetch because the re-rooting pulls in too

Re: [PATCH] Under NO_OPENSSL -lssl should not be used

2005-08-02 Thread Jon Seymour
G'day Junio, Jon, do we really need bignum to do the flow computation? From a quick glance, it appears to me that the fraction manipulation part is quite well isolated. Do you think adding the support for using other bignum implementation be reasonable (assuming you do need to use bignum

Re: [PATCH] Dereference tag repeatedly until we get a non-tag.

2005-07-11 Thread Jon Seymour
This seems reasonable to me. I have thought this would be useful on several occasions and haven't yet conceived of a counterexample where it would break something. On 7/11/05, Junio C Hamano [EMAIL PROTECTED] wrote: When we allow a tag object in place of a commit object, we only dereferenced

[PATCH 6/6] Change gitk so that it uses --topo-order rather than --merge-order

2005-07-06 Thread Jon Seymour
of --merge-order can be maintained. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- Paul, could you review this patch and if you agree, ack it. The rationale for changing gitk to use --topo-order is that git-rev-list will produce the same order for --topo-order irrespective of the order of the start list

[PATCH 5/6] Introduce --topo-order switch to git-rev-list

2005-07-06 Thread Jon Seymour
This patch introduces a --topo-order switch to git-rev-list. When this --switch is specified, a minimal topological sort weaker than the --merge-order sort is applied to the output list. The invariant of the resulting list is: a is reachable from b = ord(b) ord(a) Signed-off-by: Jon

[PATCH 4/6] Add a topological sort procedure to commit.c [rev 4]

2005-07-06 Thread Jon Seymour
is weaker than the --merge-order invariant, but is cheaper to calculate (assuming the list has been identified) and will serve any purpose where only a minimal topological order guarantee is required. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- Note: this patch currently has no observable

[PATCH 1/6] Temporary fixup to rev-list.c to restore expected order of arguments presented to --merge-order sort.

2005-07-06 Thread Jon Seymour
This patch adds a hacky special case to the rev-list main to restore the order in which the --merge-order sort algorithm receives arguments. A subsequent patch will abstract this out more cleanly. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- rev-list.c |5 - 1 files changed, 4

[PATCH 2/6] Swap order of insert_by_date arguments

2005-07-06 Thread Jon Seymour
Swap the order of insert_by_date arguments so that it matches the order of commit_list_insert. This patch anticipates a future change which will call the function via a pointer. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- commit.c |8 commit.h |6 +- epoch.c

[PATCH 3/6] Introduce struct rev_list_fns to rev-list.c to reduce amount of conditional processing.

2005-07-06 Thread Jon Seymour
of the code. This change also makes --show-breaks imply --merge-order rather than require it as before. There was no advantage to the previous strict argument checking. A subsequent change will take advantage of this pattern to introduce a topological sort switch. Signed-off-by: Jon Seymour [EMAIL

[PATCH] Tidy up - slight simplification of rev-list.c

2005-07-06 Thread Jon Seymour
This patch implements a small tidy up of rev-list.c to reduce (but not eliminate) the amount of ugliness associated with the merge_order flag. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- Linus: I decided not to abstract this out as a function as _too_ much abstraction can be a bad thing

[PATCH 1/3] Factor out useful test case infrastructure from t/t6001... into t/t6000-lib.sh

2005-07-06 Thread Jon Seymour
Functions that are useful to other t6xxx testcases are moved into t6000-lib.sh To use these functions in a test case, use a test-case pre-amble like: . ./test-lib.sh . ../t6000-lib.sh # t6xxx specific functions Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- This patch series introduces tests

[PATCH 2/3] Introduce unit tests for git-rev-list --bisect

2005-07-06 Thread Jon Seymour
This patch introduces some unit tests for the git-rev-list --bisect functionality. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- t/t6002-rev-list-bisect.sh | 247 1 files changed, 247 insertions(+), 0 deletions(-) create mode 100755 t/t6002

[PATCH 3/3] Change the sed seperator in t/t6000-lib.sh.

2005-07-06 Thread Jon Seymour
This trivial patch removes the semicolon as the sed seperator in the t/t6000-lib.sh test script and replaces it with white space. This makes BSD sed(1) much happier. Signed-off-by: Mark Allen [EMAIL PROTECTED] Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- I've applied this to the code

[PATCH 1/2] Add a t/t6001 test case for a --merge-order bug

2005-07-06 Thread Jon Seymour
This test case demonstrates a problem with --merge-order. A | B |\ C D |/ E | F git-rev-list --merge-order A B doesn't produce the expected output of A B D C E F Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- This patch is known designed to apply on top of: [PATCH 1/6] Temporary fixup

[PATCH 2/2] Fixes a problem with --merge-order A B (A is linear descendent of a merge B)

2005-07-06 Thread Jon Seymour
This patch passes the test case in the first patch of this series. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- epoch.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) e4f793b932b30a7bee16610e311630515fe88330 diff --git a/epoch.c b/epoch.c --- a/epoch.c +++ b/epoch.c @@ -612,7

[PATCH 9/13] Factor out useful test case infrastructure from t/t6001... into t/t6000-lib.sh

2005-07-06 Thread Jon Seymour
Functions that are useful to other t6xxx testcases are moved into t6000-lib.sh To use these functions in a test case, use a test-case pre-amble like: . ./test-lib.sh . ../t6000-lib.sh # t6xxx specific functions Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- t/t6000-lib.sh

[PATCH 12/13] Add a t/t6001 test case for a --merge-order bug

2005-07-06 Thread Jon Seymour
This test case demonstrates a problem with --merge-order. A | B |\ C D |/ E | F git-rev-list --merge-order A B doesn't produce the expected output of A B D C E F The problem is fixed by a subsequent patch. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- t/t6001-rev-list-merge-order.sh

[PATCH 13/13] Fixes a problem with --merge-order A B (A is linear descendent of a merge B)

2005-07-06 Thread Jon Seymour
This patch passes the test case introduced by the previous patch. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- epoch.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 6f7f90901ec4aafd12ac4179110b78fc426395cd diff --git a/epoch.c b/epoch.c --- a/epoch.c +++ b/epoch.c @@ -612,7

[PATCH 11/13] Change the sed seperator in t/t6000-lib.sh.

2005-07-06 Thread Jon Seymour
This trivial patch removes the semicolon as the sed seperator in the t/t6000-lib.sh test script and replaces it with white space. This makes BSD sed(1) much happier. Signed-off-by: Mark Allen [EMAIL PROTECTED] Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- I've applied this to the code

[PATCH 7/13] Tidy up - slight simplification of rev-list.c

2005-07-06 Thread Jon Seymour
This patch implements a small tidy up of rev-list.c to reduce (but not eliminate) the amount of ugliness associated with the merge_order flag. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- Linus: I decided not to abstract this out as a function as _too_ much abstraction can be a bad thing

[PATCH 10/13] Introduce unit tests for git-rev-list --bisect

2005-07-06 Thread Jon Seymour
This patch introduces some unit tests for the git-rev-list --bisect functionality. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- t/t6002-rev-list-bisect.sh | 247 1 files changed, 247 insertions(+), 0 deletions(-) create mode 100755 t/t6002

[PATCH 8/13] Fix handling of duplicates by topological order.

2005-07-06 Thread Jon Seymour
git-rev-list --topo-order HEAD HEAD caused a segmentation violation. This has now been fixed. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- commit.c | 15 +++ commit.h |3 +++ epoch.h| 13 ++--- rev-list.c |8 4 files changed, 24

[PATCH 6/13] Change gitk so that it uses --topo-order rather than --merge-order

2005-07-06 Thread Jon Seymour
of --merge-order can be maintained. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- Paul, could you review this patch and if you agree, ack it. The rationale for changing gitk to use --topo-order is that git-rev-list will produce the same order for --topo-order irrespective of the order of the start list

[PATCH 5/13] Introduce --topo-order switch to git-rev-list

2005-07-06 Thread Jon Seymour
This patch introduces a --topo-order switch to git-rev-list. When this --switch is specified, a minimal topological sort weaker than the --merge-order sort is applied to the output list. The invariant of the resulting list is: a is reachable from b = ord(b) ord(a) Signed-off-by: Jon

[PATCH 0/13] Patch Series

2005-07-06 Thread Jon Seymour
I have re-issued the patches I have created in the last day after checking that they apply correctly when applied in this order to the current Linus HEAD (b43d44779bf98977b211256f936d0edda8a9625a) Introduction of --topo-order and tidy up of rev-list.c [PATCH 1/13] Temporary fixup to rev-list.c

[PATCH 1/13] Temporary fixup to rev-list.c to restore expected order of arguments presented to --merge-order sort.

2005-07-06 Thread Jon Seymour
This patch adds a hacky special case to the rev-list main to restore the order in which the --merge-order sort algorithm receives arguments. A subsequent patch will abstract this out more cleanly. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- rev-list.c |5 - 1 files changed, 4

[PATCH 3/13] Introduce struct rev_list_fns to rev-list.c to reduce amount of conditional processing.

2005-07-06 Thread Jon Seymour
of the code. This change also makes --show-breaks imply --merge-order rather than require it as before. There was no advantage to the previous strict argument checking. A subsequent change will take advantage of this pattern to introduce a topological sort switch. Signed-off-by: Jon Seymour [EMAIL

[PATCH 2/13] Swap order of insert_by_date arguments

2005-07-06 Thread Jon Seymour
Swap the order of insert_by_date arguments so that it matches the order of commit_list_insert. This patch anticipates a future change which will call the function via a pointer. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- commit.c |8 commit.h |6 +- epoch.c

[PATCH 2/2] Write sed script directly into temp file, rather than a variable

2005-07-06 Thread Jon Seymour
. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- t/t6000-lib.sh | 12 +++- t/t6001-rev-list-merge-order.sh |9 - t/t6002-rev-list-bisect.sh | 10 -- t/t6003-rev-list-topo-order.sh |9 - 4 files changed, 7 insertions(+), 33 deletions

[PATCH 1/2] Add t/t6003 with some --topo-order tests

2005-07-06 Thread Jon Seymour
Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- Linus: the last test fails with --topo-order at the moment. I haven't seen your most recent changes, so it may still fail for trivial reasons even then. If so, I'll post an update. t/t6003-rev-list-topo-order.sh | 417

[PATCH] Ensure list insertion method does not depend on position of --merge-order argument

2005-07-06 Thread Jon Seymour
This change ensures that git-rev-list --merge-order produces the same result irrespective of what position the --merge-order argument appears in the argument list. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- Linus: if you'd prefer to fix this a different way, that's fine by me! --- rev

[PATCH] Remove use of SHOWN flag

2005-07-06 Thread Jon Seymour
Now that duplicates are elided early, there is no need for the SHOWN flag. This patch removes the SHOWN flag and its uses from rev-list.c Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- rev-list.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions

[PATCH] Move SEEN flag into epoch.h, replace use of VISITED flag with SEEN flag

2005-07-06 Thread Jon Seymour
that one and, for completeness, BOUNDARY and DISCONTINUITY too. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- epoch.c| 14 -- epoch.h|4 +--- rev-list.c |5 ++--- 3 files changed, 11 insertions(+), 12 deletions(-) 54a391ba7e4f96ce08ecb7da82941519b8a14c30 diff --git

[PATCH] Simplification - remove unnecessary list reversal from epoch.c

2005-07-06 Thread Jon Seymour
Since --merge-order is the only thing that cares about the rev-list parse order, change the rev-list list to match the parse order and remove the corresponding compensating reversal from epoch.c. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- [PATCH] Move SEEN flag into epoch.h, replace use

[PATCH 2/2] Fix --topo-order, --max-age interaction issue

2005-07-06 Thread Jon Seymour
Applied the --merge-order, --max-age fix to fix the --topo-order problem demonstrated by the test case in the previous patch. Signed-off-by: Jon Seymour [EMAIL PROTECTED] --- rev-list.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 8238686fd422959dae50a908b3761aa545be1c4f diff

Summary Of Jon's Recent Patches

2005-07-06 Thread Jon Seymour
Hi, I've recently posted the following patches, in this order: These ones are tidy ups: [PATCH] Remove use of SHOWN flag [PATCH] Move SEEN flag into epoch.h, replace use of VISITED flag with SEEN flag [PATCH] Simplification - remove unnecessary list reversal from epoch.c This series contains a

Re: Where'd my GIT tree go?

2005-07-06 Thread Jon Seymour
Ok, you asked for it: ...the GIT bucket. jon. ... ducks for cover ... - To unsubscribe from this list: send the line unsubscribe git in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Add script for patch submission via e-mail.

2005-07-05 Thread Jon Seymour
On 7/5/05, Petr Baudis [EMAIL PROTECTED] wrote: Any reason why this was not applied? It appears kind of cool. Well, I will probably take it and extend cg-mkpatch with it so I don't need it in Git, but I'm so altruistic and want to bring at least a bit of light to the gloomy dark world of the

Re: [PATCH] Restore expected list order for --merge-order switch

2005-07-05 Thread Jon Seymour
G'day Linus, Is there some reason why this didn't get applied? jon. On 7/5/05, Jon Seymour [EMAIL PROTECTED] wrote: A recent change to rev-list altered the order in which start points are presented to the merge-order sort algorithm. This caused breaks in the t/t6001 unit tests

Re: First web interface and service API draft

2005-04-22 Thread Jon Seymour
On 4/22/05, Christian Meder [EMAIL PROTECTED] wrote: Comments ? Ideas ? Other feedback ? I'd suggest serving XML rather than HTML and using client side XSLT to transform it into HTML. Client-side XSLT works well in IE 6 and all versions of Firefox, so there is no question that it is a mature

Re: First web interface and service API draft

2005-04-22 Thread Jon Seymour
On 4/22/05, Petr Baudis [EMAIL PROTECTED] wrote: Dear diary, on Fri, Apr 22, 2005 at 01:34:45PM CEST, I got a letter where Jon Seymour [EMAIL PROTECTED] told me that... On 4/22/05, Christian Meder [EMAIL PROTECTED] wrote: Comments ? Ideas ? Other feedback ? I'd suggest serving XML

Re: wit 0.0.3 - a web interface for git available

2005-04-21 Thread Jon Seymour
On 4/21/05, Kay Sievers [EMAIL PROTECTED] wrote: On Wed, Apr 20, 2005 at 10:42:53AM +0100, Christoph Hellwig wrote: It's working now: http://ehlo.org/~kay/gitweb.pl Kay + Christian + Ken, That looks really great!. One suggestion: when drilling down through the tree it would be nice if

Re: WARNING! Object DB conversion (was Re: [PATCH] write-tree performance problems)

2005-04-20 Thread Jon Seymour
On 4/20/05, Linus Torvalds [EMAIL PROTECTED] wrote: I converted my git archives (kernel and git itself) to do the SHA1 hash _before_ the compression phase. Linus, Am I correct to understand that with this change, all the objects in the database are still being compressed (so no net

Re: WARNING! Object DB conversion (was Re: [PATCH] write-tree performance problems)

2005-04-20 Thread Jon Seymour
The main point is not about trying different compression techniques but that you don't need to compress at all just to calculate the hash of some data. (to know if it is unchanged for example) Ah, ok, I didn't understand that there were extra compresses being performed for that reason.

Re: Change pull to _only_ download, and git update=pull+merge?

2005-04-19 Thread Jon Seymour
I disagree. This already forces you to have two branches (one to pull from to get the data, mirroring the remote branch, one for your real work) uselessly and needlessly. ... These naming issues may appear silly but I think they matter big time for usability, intuitiveness, and learning