Re: [PATCH v7 0/7] git-p4: add support for large file systems

2015-09-23 Thread Luke Diamand
Adding back git@vger.kernel.org, which I inadvertently dropped off the thread. On 23 September 2015 at 12:22, Luke Diamand wrote: > On 23 September 2015 at 11:09, Lars Schneider > wrote: >> >> On 23 Sep 2015, at 11:22, Luke Diamand

[PATCH] worktree: don't use C99 feature

2015-09-23 Thread Ramsay Jones
Commits 9c0b9f6 ("worktree: add 'list' command", 18-09-2015) and 40ca3d3 ("worktree: add functions to get worktree details", 18-08-2015) both introduce the use of a C99 feature (declare the loop control variable in the loop header initializer section). Signed-off-by: Ramsay Jones

Re: [PATCH v7 0/7] git-p4: add support for large file systems

2015-09-23 Thread Lars Schneider
On 23 Sep 2015, at 13:25, Luke Diamand wrote: > Adding back git@vger.kernel.org, which I inadvertently dropped off the thread. > > On 23 September 2015 at 12:22, Luke Diamand wrote: >> On 23 September 2015 at 11:09, Lars Schneider

Re: git-p4: t9819 failing

2015-09-23 Thread Lars Schneider
On 23 Sep 2015, at 11:27, Luke Diamand wrote: > Lars, > > I just noticed that your change "git-p4: honor core.ignorecase when > using P4 client specs" seems to break t9819. > > I suspect that the problem is just that t9819 needs to be updated to > reflect your change - do

Re: git-p4: t9819 failing

2015-09-23 Thread Lars Schneider
On 23 Sep 2015, at 13:11, Luke Diamand wrote: > On 23 September 2015 at 11:27, Lars Schneider > wrote: >> >> On 23 Sep 2015, at 11:27, Luke Diamand wrote: >> >>> Lars, >>> >>> I just noticed that your change "git-p4: honor

Re: Unable to create temporary file '/var/git/tmv3-target-overlay.git/shallow_Un8ZOR': Permission denied

2015-09-23 Thread Johannes Schindelin
Hi Joakim, On 2015-09-22 22:58, Joakim Tjernlund wrote: > On Tue, 2015-09-22 at 22:00 +0200, Johannes Schindelin wrote: >> >> The reason should be easy to understand: Git's concept is based on the idea >> that you have full control over >> your repository. Other repositories you might only have

Re: git-p4: t9819 failing

2015-09-23 Thread Luke Diamand
On 23 September 2015 at 11:27, Lars Schneider wrote: > > On 23 Sep 2015, at 11:27, Luke Diamand wrote: > >> Lars, >> >> I just noticed that your change "git-p4: honor core.ignorecase when >> using P4 client specs" seems to break t9819. >> >> I suspect

Re: [PATCHv4 06/14] run-command: add an asynchronous parallel child processor

2015-09-23 Thread Junio C Hamano
Junio C Hamano writes: > Stefan Beller writes: > >> +static void pp_buffer_stderr(struct parallel_processes *pp) >> +{ >> +int i; >> + >> +while ((i = poll(pp->pfd, pp->max_processes, 100)) < 0) { >> +if (errno == EINTR) >> +

Re: [PATCH] worktree: don't use C99 feature

2015-09-23 Thread Junio C Hamano
Ramsay Jones writes: > Commits 9c0b9f6 ("worktree: add 'list' command", 18-09-2015) and > 40ca3d3 ("worktree: add functions to get worktree details", 18-08-2015) > both introduce the use of a C99 feature (declare the loop control > variable in the loop header

RE: [PATCH] git-svn: make batch mode optional for git-cat-file

2015-09-23 Thread Victor Leschuk
Hello Eric, thanks for looking into it. >> git-cat-file has outgrown the parent perl process several times >> (git-cat-file - ~3-4Gb, perl - 400Mb). > Ugh, that sucks. > Even the 400Mb size of Perl annoys me greatly and I'd work > on fixing it if I had more time. I was going to look at this

Re: Unable to create temporary file '/var/git/tmv3-target-overlay.git/shallow_Un8ZOR': Permission denied

2015-09-23 Thread Junio C Hamano
Johannes Schindelin writes: >> A .git/tmp/ would make housekeeping easier, you would know that every >> file under .git >> should be there and if you find something you don't recognize you would >> react. > > No, it would actually make it harder. I seem to recall

Re: [PATCHv4 06/14] run-command: add an asynchronous parallel child processor

2015-09-23 Thread Stefan Beller
On Tue, Sep 22, 2015 at 11:29 PM, Junio C Hamano wrote: > > And this one, when get_next_task() says "nothing more to do", is > clearly "we returned without starting anything", so according to the > comment it should be returning 0, but the code returns 1, which > looks

Re: [PATCHv4 06/14] run-command: add an asynchronous parallel child processor

2015-09-23 Thread Junio C Hamano
Stefan Beller writes: > I modified the test-run-command test function to start up to 400 processes. > (Most people will use less than 400 processes in the next 5 years), and run > just as in t0061: > > ./test-run-command run-command-parallel-400 sh -c "printf >

[PATCH v6 4/8] branch: move 'current' check down to the presentation layer

2015-09-23 Thread Karthik Nayak
We check if given ref is the current branch in print_ref_list(). Move this check to print_ref_item() where it is checked right before printing. This enables a smooth transition to using ref-filter APIs, as we can later replace the current check while printing to just check for FILTER_REFS_DETACHED

[PATCH v6 0/8] port branch.c to use the filtering part of ref-filter.

2015-09-23 Thread Karthik Nayak
The previous iteration of the same can be found: http://www.mail-archive.com/git@vger.kernel.org/msg78153.html Changes in this version: * use ref_default_sorting() * Improve documentation, comments and commit message. Karthik Nayak (8): branch: refactor width computation branch: bump

Re: [PATCH v6 5/8] branch: drop non-commit error reporting

2015-09-23 Thread Matthieu Moy
Karthik Nayak writes: > Remove the error reporting variable to make the code easier to port > over to using ref-filter APIs. > > This also removes the error from being displayed. As branch.c will use > ref-filter APIs in the following patches, the error checking becomes >

Re: [PATCH v6 0/8] port branch.c to use the filtering part of ref-filter.

2015-09-23 Thread Matthieu Moy
Karthik Nayak writes: > --- a/builtin/branch.c > +++ b/builtin/branch.c > @@ -479,8 +479,6 @@ static void print_ref_list(struct ref_filter *filter, > struct ref_sorting *sortin > struct ref_array array; > int maxwidth = 0; > const char *remote_prefix =

[PATCH v6 7/8] branch.c: use 'ref-filter' APIs

2015-09-23 Thread Karthik Nayak
Make 'branch.c' use 'ref-filter' APIs for iterating through refs sorting. This removes most of the code used in 'branch.c' replacing it with calls to the 'ref-filter' library. Make 'branch.c' use the 'filter_refs()' function provided by 'ref-filter' to filter out tags based on the options set.

[PATCH v6 6/8] branch.c: use 'ref-filter' data structures

2015-09-23 Thread Karthik Nayak
Make 'branch.c' use 'ref-filter' data structures and make changes to support the new data structures. This is a part of the process of porting 'branch.c' to use 'ref-filter' APIs. This is a temporary step before porting 'branch.c' to use 'ref-filter' completely. As this is a temporary step, most

[PATCH v6 3/8] branch: roll show_detached HEAD into regular ref_list

2015-09-23 Thread Karthik Nayak
Remove show_detached() and make detached HEAD to be rolled into regular ref_list by adding REF_DETACHED_HEAD as a kind of branch and supporting the same in append_ref(). This eliminates the need for an extra function and helps in easier porting of branch.c to use ref-filter APIs. Before

[PATCH v6 8/8] branch: add '--points-at' option

2015-09-23 Thread Karthik Nayak
Add the '--points-at' option provided by 'ref-filter'. The option lets the user to list only branches which points at the given object. Add documentation and tests for the same. Mentored-by: Christian Couder Mentored-by: Matthieu Moy

Re: [PATCHv4 06/14] run-command: add an asynchronous parallel child processor

2015-09-23 Thread Junio C Hamano
Junio C Hamano writes: > Just to make sure there is no misunderstanding, just like I prefer > "start one" over "start as many as possible" in order to give > scheduling decision to the calling loop, I would expect that... To sum up, what I anticipate would happen over time on

Re: [PATCH v6 0/8] port branch.c to use the filtering part of ref-filter.

2015-09-23 Thread Junio C Hamano
Matthieu Moy writes: > The series looks good to me. I did a minor remark on PATCH 5/8 but this > should not block inclusion. Thanks. As long as the log message is telling the truth, I do not mind the actual lossage of the error message shown to the user. -- To

Re: [PATCHv4 06/14] run-command: add an asynchronous parallel child processor

2015-09-23 Thread Junio C Hamano
Stefan Beller writes: > I can confirm this now. > > git fetch --recurse-submodules=yes -j 400 > > in an submodule-ified Android tree takes very long to start putting out useful > information, but if I hardcode the SPAWN_CAP to 4 it looks pretty amazing > fast. Nice to

Re: [PATCH v6 5/8] branch: drop non-commit error reporting

2015-09-23 Thread Junio C Hamano
Karthik Nayak writes: > Remove the error reporting variable to make the code easier to port > over to using ref-filter APIs. > > This also removes the error from being displayed. As branch.c will use > ref-filter APIs in the following patches, the error checking becomes >

Re: [PATCH] git-svn: make batch mode optional for git-cat-file

2015-09-23 Thread Eric Wong
Victor Leschuk wrote: > Hello Eric, thanks for looking into it. > > >> git-cat-file has outgrown the parent perl process several times > >> (git-cat-file - ~3-4Gb, perl - 400Mb). > > > Ugh, that sucks. > > Even the 400Mb size of Perl annoys me greatly and I'd work > >

[PATCH v6 1/8] branch: refactor width computation

2015-09-23 Thread Karthik Nayak
From: Karthik Nayak Remove unnecessary variables from ref_list and ref_item which were used for width computation. This is to make ref_item similar to ref-filter's ref_array_item. This will ensure a smooth port of branch.c to use ref-filter APIs in further patches.

[PATCH v6 2/8] branch: bump get_head_description() to the top

2015-09-23 Thread Karthik Nayak
This is a preperatory patch for 'roll show_detached HEAD into regular ref_list'. This patch moves get_head_description() to the top so that it can be used in print_ref_item(). Based-on-patch-by: Jeff King Mentored-by: Christian Couder Mentored-by:

[PATCH v6 5/8] branch: drop non-commit error reporting

2015-09-23 Thread Karthik Nayak
Remove the error reporting variable to make the code easier to port over to using ref-filter APIs. This also removes the error from being displayed. As branch.c will use ref-filter APIs in the following patches, the error checking becomes redundant with the error reporting system found in the

Re: [PATCHv4 06/14] run-command: add an asynchronous parallel child processor

2015-09-23 Thread Junio C Hamano
Junio C Hamano writes: > You are running "git fetch" that are is a lot more heavy-weight. > Because once each of them started fully they will be network bound, > it is likely that you would want to run more processes than you have > core. I thought the conclusion would be

Re: [PATCHv4 06/14] run-command: add an asynchronous parallel child processor

2015-09-23 Thread Stefan Beller
On Wed, Sep 23, 2015 at 12:34 PM, Junio C Hamano wrote: > Junio C Hamano writes: > >> You are running "git fetch" that are is a lot more heavy-weight. >> Because once each of them started fully they will be network bound, >> it is likely that you would want

Re: [PATCH v4 1/2] git-p4: add test case for "Translation of file content failed" error

2015-09-23 Thread Lars Schneider
Thanks a lot for taking care of this! - Lars On 22 Sep 2015, at 21:17, Junio C Hamano wrote: > Yup, this was privately reported and I just squashed a fix in right now ;-) > > Thanks. "cd t && make test-lint" would have caught it. > > On Tue, Sep 22, 2015 at 12:11 PM,

Re: [PATCHv4 06/14] run-command: add an asynchronous parallel child processor

2015-09-23 Thread Junio C Hamano
Stefan Beller writes: > run-command.c | 264 > + > run-command.h | 36 +++ > t/t0061-run-command.sh | 20 > test-run-command.c | 24 + > 4 files changed, 344 insertions(+) I think we are

Re: [PATCHv4 06/14] run-command: add an asynchronous parallel child processor

2015-09-23 Thread Junio C Hamano
Stefan Beller writes: > +static void pp_buffer_stderr(struct parallel_processes *pp) > +{ > + int i; > + > + while ((i = poll(pp->pfd, pp->max_processes, 100)) < 0) { > + if (errno == EINTR) > + continue; > + pp_cleanup(pp);

Re: [PATCH v7 0/7] git-p4: add support for large file systems

2015-09-23 Thread Lars Schneider
On 23 Sep 2015, at 00:03, Junio C Hamano wrote: > larsxschnei...@gmail.com writes: > >> From: Lars Schneider >> >> diff to v6: >> * fix spaces in .gitattributes for Git-LFS files (old "[:space:]", new >> "[[:space:]]") >> * generated patch on top

loan.

2015-09-23 Thread SUN
Do you need a loan to pay off your bills, start up a business We give out loan at affordable rate of 2%. For quick response provide the below information. Name: Amount: Duration: Country: Age: Address: Mobile Number: Regards. -- To unsubscribe from this list: send the line "unsubscribe git" in

Re: [PATCH v7 1/7] git-p4: add optional type specifier to gitConfig reader

2015-09-23 Thread Lars Schneider
On 22 Sep 2015, at 23:49, Junio C Hamano wrote: > larsxschnei...@gmail.com writes: > >> From: Lars Schneider >> >> The functions “gitConfig” and “gitConfigBool” are almost identical. Make >> “gitConfig” more generic by adding an optional type

Re: [PATCH v7 0/7] git-p4: add support for large file systems

2015-09-23 Thread Lars Schneider
On 23 Sep 2015, at 10:18, Lars Schneider wrote: > > On 23 Sep 2015, at 09:58, Luke Diamand wrote: > >> On 21 September 2015 at 23:41, wrote: >>> From: Lars Schneider >>> >>> diff to v6: >>> *

Re: [PATCH v7 0/7] git-p4: add support for large file systems

2015-09-23 Thread Luke Diamand
On 21 September 2015 at 23:41, wrote: > From: Lars Schneider > > diff to v6: > * fix spaces in .gitattributes for Git-LFS files (old "[:space:]", new > "[[:space:]]") > * generated patch on top of next (95c4325) to resolve merge conflicts

Re: [PATCH v7 0/7] git-p4: add support for large file systems

2015-09-23 Thread Lars Schneider
On 23 Sep 2015, at 09:58, Luke Diamand wrote: > On 21 September 2015 at 23:41, wrote: >> From: Lars Schneider >> >> diff to v6: >> * fix spaces in .gitattributes for Git-LFS files (old "[:space:]", new >> "[[:space:]]")

Re: [PATCH v6 5/8] branch: drop non-commit error reporting

2015-09-23 Thread Junio C Hamano
Junio C Hamano writes: > Perhaps something like this (not even compile tested as both of my > worktrees are doing something else) This time with a few additional tests. -- >8 -- Subject: [PATCH] fsck: exit with non-zero when problems are found After finding some

Re: [PATCH v6 5/8] branch: drop non-commit error reporting

2015-09-23 Thread Matthieu Moy
Junio C Hamano writes: > Karthik Nayak writes: > >> Remove the error reporting variable to make the code easier to port >> over to using ref-filter APIs. >> >> This also removes the error from being displayed. As branch.c will use >> ref-filter APIs in

Re: [PATCHv4 12/14] git submodule update: cmd_update_clone

2015-09-23 Thread Junio C Hamano
Stefan Beller writes: > Split the cloning part out to its own function, > this allow us in a later patch to convert cmd_update in C. > > Signed-off-by: Stefan Beller > --- It appears that this is not just a refactor and loses the logic around

Re: [PATCH v6 5/8] branch: drop non-commit error reporting

2015-09-23 Thread Junio C Hamano
Matthieu Moy writes: > More precisely: if we find such a branch ref and we're used with an > option that requires us to lookup the commit, then we report it as an > error. > ... > So I agree with Junio that the commit message is not sufficient: there > is a

Re: [PATCH v6 5/8] branch: drop non-commit error reporting

2015-09-23 Thread Junio C Hamano
Junio C Hamano writes: >> BTW, this looks like an fsck bug: >> >> $ git fsck --strict >> Checking object directories: 100% (256/256), done. >> error: refs/heads/broken: not a commit >> $ echo $? >> 0 > > Interesting. Perhaps leave it as a MicroProject for GSoC next year? >

Re: Unable to create temporary file '/var/git/tmv3-target-overlay.git/shallow_Un8ZOR': Permission denied

2015-09-23 Thread Joakim Tjernlund
On Wed, 2015-09-23 at 13:10 +0200, Johannes Schindelin wrote: > Hi Joakim, > > On 2015-09-22 22:58, Joakim Tjernlund wrote: > > On Tue, 2015-09-22 at 22:00 +0200, Johannes Schindelin wrote: > > > > > > The reason should be easy to understand: Git's concept is based on the > > > idea that you

Re: [PATCH] filter-branch: add passed/remaining seconds on progress

2015-09-23 Thread Gabor Bernat
On Tue, Sep 22, 2015 at 6:08 PM, Junio C Hamano wrote: > Gabor Bernat writes: > >> On Mon, Sep 21, 2015 at 11:24 PM, Gábor Bernát >> ... >>> Agreed, :) did not abandoned this, just got caught up with many stuff. >>> Thanks for the help, >> >> So do I

git-p4: t9819 failing

2015-09-23 Thread Luke Diamand
Lars, I just noticed that your change "git-p4: honor core.ignorecase when using P4 client specs" seems to break t9819. I suspect that the problem is just that t9819 needs to be updated to reflect your change - do you have any thoughts on that? Thanks! Luke -- To unsubscribe from this list: send

Re: [PATCH v8 4/4] worktree: add 'list' command

2015-09-23 Thread Mike Rappazzo
On Tue, Sep 22, 2015 at 3:42 PM, Junio C Hamano wrote: > Michael Rappazzo writes: > >> >> +--porcelain:: >> + With `list`, output in an easy-to-parse format for scripts. >> + This format will remain stable across Git versions and regardless of >>

Re: [PATCH v6 5/8] branch: drop non-commit error reporting

2015-09-23 Thread Junio C Hamano
Matthieu Moy writes: > To be sure, I tried: > > echo ee0f5eeeae36cd1b5a346a1e2ae5c8cb841cd5da > .git/refs/heads/broken > > where the sha1 is the one of a blob. > ... After doing (something like) the above, running "git push --mirror" to various Git repositories

[PATCHv5] Another squash on run-command: add an asynchronous parallel child processor

2015-09-23 Thread Stefan Beller
Signed-off-by: Stefan Beller --- I agree the commit 7087c5f3 (SQUASH??? on top of run-command: add an asynchronous parallel child processor) makes sense; I arrived at the same patch after adding in the feedback. However I have the difference below, which I think could also

Re: Unable to create temporary file '/var/git/tmv3-target-overlay.git/shallow_Un8ZOR': Permission denied

2015-09-23 Thread Johannes Schindelin
Hi Joakim, On 2015-09-23 22:41, Joakim Tjernlund wrote: > On Wed, 2015-09-23 at 13:10 +0200, Johannes Schindelin wrote: >> >> On 2015-09-22 22:58, Joakim Tjernlund wrote: >> > On Tue, 2015-09-22 at 22:00 +0200, Johannes Schindelin wrote: >> > > >> > > The reason should be easy to understand:

What's cooking in git.git (Sep 2015, #06; Wed, 23)

2015-09-23 Thread Junio C Hamano
Here are the topics that have been cooking. Commits prefixed with '-' are only in 'pu' (proposed updates) while commits prefixed with '+' are in 'next'. Not much has happened on the 'master' or 'next' fronts, but we have seen quite a lot of activities above them to prepare for the next cycle,

Re: t5561 failing after make PROFILE=GEN

2015-09-23 Thread Jeff King
On Wed, Sep 23, 2015 at 01:21:39AM +0200, Stephan Beyer wrote: > I noticed that t5561 fails on my machine when compiling with > "make PROFILE=GEN". Luckily, the reason seems to be the test only, > not the tool it is testing. > > I tracked it down that far that log_div() (defined in >

Re: t5561 failing after make PROFILE=GEN

2015-09-23 Thread Stephan Beyer
Hi, On 09/24/2015 01:24 AM, Jeff King wrote: >> I noticed that t5561 fails on my machine when compiling with >> "make PROFILE=GEN". Luckily, the reason seems to be the test only, >> not the tool it is testing. >> >> I tracked it down that far that log_div() (defined in >> t/t5561-http-backend.sh

[PATCH] t5561: get rid of racy appending to logfile

2015-09-23 Thread Stephan Beyer
The definition of log_div() appended information to the web server's logfile to make the test more readable. However, it could happen that this information is written before the web server writes its log line (this consistently happens with a PROFILE=GEN build), and hence the test failed. To get

Re: t5561 failing after make PROFILE=GEN

2015-09-23 Thread Jeff King
On Thu, Sep 24, 2015 at 02:22:10AM +0200, Stephan Beyer wrote: > I only checked for profile builds and first tried to bisect the issue, > which went terribly wrong because using older Git commits (unluckily I > can't say now how far you should go back in history), the test failed or > succeeded

Re: [PATCH] t5561: get rid of racy appending to logfile

2015-09-23 Thread Jeff King
On Thu, Sep 24, 2015 at 02:20:17AM +0200, Stephan Beyer wrote: > The definition of log_div() appended information to the web server's > logfile to make the test more readable. However, it could happen that > this information is written before the web server writes its log line > (this

Re: [PATCHv5] Another squash on run-command: add an asynchronous parallel child processor

2015-09-23 Thread Junio C Hamano
Stefan Beller writes: > I agree the commit 7087c5f3 (SQUASH??? on top of run-command: add an > asynchronous parallel child processor) makes sense; I arrived at the same > patch after adding in the feedback. I dunno. As I said, while a small part of that commit is necessary

Re: [PATCH v8 4/4] worktree: add 'list' command

2015-09-23 Thread Junio C Hamano
Mike Rappazzo writes: > ... Does the porcelain > format restrict additive changes? That is, is it OK for a future > patch to add another field in the format, as long as it doesn't alter > the other values? Is the format that I have used here acceptable > (assuming the