1. 12 8月, 2005 10 次提交
    • J
      Clean generated deb files. · a6bc3133
      Junio C Hamano 提交于
      Do not forgot that we have a separate git-tk package these days.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a6bc3133
    • P
      [PATCH] Trapping exit in tests, using return for errors: further fixes. · 41184273
      Pavel Roskin 提交于
      "return" from a test would leave the exit trap set, which could cause a
      spurious error message if it's the last test in the script or
      --immediate is used.
      
      The easiest solution would be to have a global trap that is set when
      test-lib.sh is sourced and unset either by test_done(), error() or by
      test_failure_() with --immediate.
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      41184273
    • P
      [PATCH] Trapping exit in tests, using return for errors · 4d9d62fa
      Pavel Roskin 提交于
      I have noticed that "make test" fails without any explanations when the
      "merge" utility is missing.  I don't think tests should be silent in
      case of failure.
      
      It turned out that the particular test was using "exit" to interrupt the
      test in case of an error.  This caused the whole test script to exit.
      No further tests would be run even if "--immediate" wasn't specified.
      No error message was printed.
      
      This patch does following:
      
      All instances of "exit", "exit 1" and "(exit 1)" in tests have been
      replaced with "return 1".  In fact, "(exit 1)" had no effect.
      
      File descriptor 5 is duplicated from file descriptor 1.  This is needed
      to print important error messages from tests.
      
      New function test_run_() has been introduced.  Any "return" in the test
      would merely cause that function to return without skipping calls to
      test_failure_() and test_ok_().  The new function also traps "exit" and
      treats it like a fatal error (in case somebody reintroduces "exit" in
      the tests).
      
      test_expect_failure() and test_expect_success() check both the result of
      eval and the return value of test_run_().  If the later is not 0, it's
      always a failure because it indicates the the test didn't complete.
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4d9d62fa
    • P
      [PATCH] Need to set PAGER in tests · d9bdd39e
      Pavel Roskin 提交于
      "t5400-send-pack.sh --verbose" stops waiting for user input.  It happens
      because "git log" uses less for output now.  To prevent this, PAGER
      should be set to cat.
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d9bdd39e
    • P
      [PATCH] Missing test_done · da7bc9b0
      Pavel Roskin 提交于
      All test scripts should end with test_done, which reports the test
      results.  In the future, it could be used for other purposes, e.g. to
      distinguish graceful end from "exit" in a test.  This patch fixes
      scripts that don't call test_done.
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      da7bc9b0
    • J
      String comparison of test is done with '=', not '=='. · 8e832ebc
      Junio C Hamano 提交于
      Caught this during a test setting /bin/sh to (d)ash.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      8e832ebc
    • M
      Debian packaging fixes. · 5acc5bfd
      Matthias Urlichs 提交于
      - Split gitk off to its own package;
        it needs tk installed, but nothing else does.
      - Refer to GPL properly, don't install COPYING.
      - Fix maintainer.
      - Use dh_movefiles instead of dh_install;
        we don't want to list everything *except* gitk.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5acc5bfd
    • J
      merge-base.c: pathological case fix. · b4ad66b7
      Junio C Hamano 提交于
      Also add some illustration requested by Linus.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b4ad66b7
    • L
      [PATCH] Speed up git-merge-base a lot · 0b9442d6
      Linus Torvalds 提交于
      In commit 4f7eb2e5 I fixed git-merge-base
      getting confused by datestamps that caused it to traverse things in a
      non-obvious order.
      
      However, my fix was a very brute-force one, and it had some really
      horrible implications for more complex trees with lots of parallell
      development. It might end up traversing all the way to the root commit.
      
      Now, normally that isn't that horrible: it's used mainly for merging, and
      the bad cases really tend to happen fairly rarely, so if it takes a few
      seconds, we're not in too bad shape.
      
      However, gitk will also do the git-merge-base for every merge it shows,
      because it basically re-does the trivial merge in order to show the
      "interesting" parts. And there we'd really like the result to be
      instantaneous.
      
      This patch does that by walking the tree more completely, and using the
      same heuristic as git-rev-list to decide "ok, the rest is uninteresting".
      
      In one - hopefully fairly extreme - case, it made a git-merge-base go from
      just under five seconds(!) to a tenth of a second on my machine.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      0b9442d6
    • J
      Merge with gitk. · 2b64f88f
      Junio C Hamano 提交于
      This merges commit
          b664550c
      from gitk into our head commit
          bf570303
      
      Sincerely,
          jit-merge command.
      2b64f88f
  2. 11 8月, 2005 6 次提交
  3. 10 8月, 2005 22 次提交
  4. 09 8月, 2005 2 次提交