summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-10-18git-p4: handle utf16 filetype properlyPete Wyckoff
One of the filetypes that p4 supports is utf16. Its behavior is odd in this case. The data delivered through "p4 -G print" is not encoded in utf16, although "p4 print -o" will produce the proper utf16-encoded file. When dealing with this filetype, discard the data from -G, and instead read the contents directly. An alternate approach would be to try to encode the data in python. That worked for true utf16 files, but for other files marked as utf16, p4 delivers mangled text in no recognizable encoding. Add a test case to check utf16 handling, and +k and +ko handling. Reported-by: Chris Li <git@chrisli.org> Acked-by: Luke Diamand <luke@diamand.org> Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-18git-p4 tests: refactor and cleanupPete Wyckoff
Introduce a library for functions that are common to multiple git-p4 test files. Be a bit more clever about starting and stopping p4d. Specify a unique port number for each test, so that tests can run in parallel. Start p4d not in daemon mode, and save the pid, to be able to kill it cleanly later. Never kill p4d at startup; always shutdown cleanly. Handle directory changes better. Always chdir inside a subshell, and remove any post-test directory changes. Clean up whitespace, and use test_cmp and test_must_fail more consistently. Separate the tests related to detecting p4 branches into their own file, and add a few more. Acked-by: Luke Diamand <luke@diamand.org> Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-16Sync with maintJunio C Hamano
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-16Prepare for 1.7.7.1Junio C Hamano
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-16Merge branch 'ms/patch-id-with-overlong-line' into maintJunio C Hamano
* ms/patch-id-with-overlong-line: patch-id.c: use strbuf instead of a fixed buffer
2011-10-16Merge branch 'jc/maint-bundle-too-quiet' into maintJunio C Hamano
* jc/maint-bundle-too-quiet: Teach progress eye-candy to fetch_refs_from_bundle()
2011-10-16Merge branch 'jk/filter-branch-require-clean-work-tree' into maintJunio C Hamano
* jk/filter-branch-require-clean-work-tree: filter-branch: use require_clean_work_tree
2011-10-16Merge branch 'jc/maint-fsck-fwrite-size-check' into maintJunio C Hamano
* jc/maint-fsck-fwrite-size-check: fsck: do not abort upon finding an empty blob
2011-10-16Merge branch 'bk/ancestry-path' into maintJunio C Hamano
* bk/ancestry-path: t6019: avoid refname collision on case-insensitive systems revision: do not include sibling history in --ancestry-path output revision: keep track of the end-user input from the command line rev-list: Demonstrate breakage with --ancestry-path --all
2011-10-16Merge branch 'jk/maint-fetch-submodule-check-fix' into maintJunio C Hamano
* jk/maint-fetch-submodule-check-fix: fetch: avoid quadratic loop checking for updated submodules
2011-10-16Merge branch 'tr/mergetool-valgrind' into maintJunio C Hamano
* tr/mergetool-valgrind: Symlink mergetools scriptlets into valgrind wrappers
2011-10-16Merge branch 'nm/grep-object-sha1-lock' into maintJunio C Hamano
* nm/grep-object-sha1-lock: grep: Fix race condition in delta_base_cache Conflicts: builtin/grep.c
2011-10-16Merge branch 'jc/diff-index-unpack' into maintJunio C Hamano
* jc/diff-index-unpack: diff-index: pass pathspec down to unpack-trees machinery unpack-trees: allow pruning with pathspec traverse_trees(): allow pruning with pathspec
2011-10-16Merge branch 'mm/rebase-i-exec-edit' into maintJunio C Hamano
* mm/rebase-i-exec-edit: rebase -i: notice and warn if "exec $cmd" modifies the index or the working tree rebase -i: clean error message for --continue after failed exec
2011-10-16Merge branch 'jc/grep-untracked-exclude'Junio C Hamano
* jc/grep-untracked-exclude: grep: fix the error message that mentions --exclude
2011-10-16Merge branch 'jc/maint-grep-untracked-exclude' into jc/grep-untracked-excludeJunio C Hamano
* jc/maint-grep-untracked-exclude: grep: fix the error message that mentions --exclude Conflicts: builtin/grep.c
2011-10-16grep: fix the error message that mentions --excludeBert Wesarg
Missing rename from --exclude to --standard-exclude. Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-14send-email: Fix %config_path_settings handlingCord Seele
cec5dae (use new Git::config_path() for aliasesfile, 2011-09-30) broke the expansion of aliases. This was caused by treating %config_path_settings, newly introduced in said patch, like %config_bool_settings instead of like %config_settings. Copy from %config_settings, making it more readable. While at it add basic test for expansion of aliases, and for path expansion, which would catch this error. Nb. there were a few issues that were responsible for this error: 1. %config_bool_settings and %config_settings despite similar name have different semantic. %config_bool_settings values are arrays where the first element is (reference to) the variable to set, and second element is default value... which admittedly is a bit cryptic. More readable if more verbose option would be to use hash reference, e.g.: my %config_bool_settings = ( "thread" => { variable => \$thread, default => 1}, [...] %config_settings values are either either reference to scalar variable or reference to array. In second case it means that option (or config option) is multi-valued. BTW. this is similar to what Getopt::Long does. 2. In cec5dae (use new Git::config_path() for aliasesfile, 2011-09-30) the setting "aliasesfile" was moved from %config_settings to newly introduced %config_path_settings. But the loop that parses settings from %config_path_settings was copy'n'pasted *wrongly* from %config_bool_settings instead of from %config_settings. It looks like cec5dae author cargo-culted this change... 3. 994d6c6 (send-email: address expansion for common mailers, 2006-05-14) didn't add test for alias expansion to t9001-send-email.sh Signed-off-by: Cord Seele <cowose@gmail.com> Tested-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-14Merge branch 'maint'Junio C Hamano
* maint: t1304: fall back to $USER if $LOGNAME is not defined
2011-10-14t1304: fall back to $USER if $LOGNAME is not definedRené Scharfe
For some reason $LOGNAME is not set anymore for me after an upgrade from Ubuntu 11.04 to 11.10. Use $USER in such a case. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-14Update draft release notes to 1.7.8Junio C Hamano
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-14Merge branch 'js/maint-merge-one-file-osx-expr'Junio C Hamano
* js/maint-merge-one-file-osx-expr: merge-one-file: fix "expr: non-numeric argument"
2011-10-14Merge branch 'jn/ident-from-etc-mailname'Junio C Hamano
* jn/ident-from-etc-mailname: ident: do not retrieve default ident when unnecessary ident: check /etc/mailname if email is unknown
2011-10-14Merge branch 'il/archive-err-signal'Junio C Hamano
* il/archive-err-signal: Support ERR in remote archive like in fetch/push
2011-10-14Merge branch 'jc/grep-untracked-exclude'Junio C Hamano
* jc/grep-untracked-exclude: grep: teach --untracked and --exclude-standard options
2011-10-14Merge branch 'rs/diff-cleanup-records-fix'Junio C Hamano
* rs/diff-cleanup-records-fix: diff: resurrect XDF_NEED_MINIMAL with --minimal Revert removal of multi-match discard heuristic in 27af01
2011-10-14Merge branch 'rs/pending'Junio C Hamano
* rs/pending: commit: factor out clear_commit_marks_for_object_array checkout: use leak_pending flag bundle: use leak_pending flag bisect: use leak_pending flag revision: add leak_pending flag checkout: use add_pending_{object,sha1} in orphan check revision: factor out add_pending_sha1 checkout: check for "Previous HEAD" notice in t2020 Conflicts: builtin/checkout.c revision.c
2011-10-14Merge branch 'jn/no-g-plus-s-on-bsd'Junio C Hamano
* jn/no-g-plus-s-on-bsd: Makefile: do not set setgid bit on directories on GNU/kFreeBSD
2011-10-14Merge branch 'jc/is-url-simplify'Junio C Hamano
* jc/is-url-simplify: url.c: simplify is_url()
2011-10-14Merge branch 'nd/git-daemon-error-msgs'Junio C Hamano
* nd/git-daemon-error-msgs: daemon: return "access denied" if a service is not allowed
2011-10-14Merge branch 'nd/daemon-log-sock-errors'Junio C Hamano
* nd/daemon-log-sock-errors: daemon: log errors if we could not use some sockets
2011-10-14Merge branch 'cp/git-web-browse-browsers'Junio C Hamano
* cp/git-web-browse-browsers: git-web--browse: avoid the use of eval
2011-10-14Merge branch 'jc/apply-blank-at-eof-fix'Junio C Hamano
* jc/apply-blank-at-eof-fix: apply --whitespace=error: correctly report new blank lines at end
2011-10-14Merge branch 'di/fast-import-empty-tag-note-fix'Junio C Hamano
* di/fast-import-empty-tag-note-fix: fast-import: don't allow to note on empty branch fast-import: don't allow to tag empty branch
2011-10-14Merge branch 'nd/maint-autofix-tag-in-head'Junio C Hamano
* nd/maint-autofix-tag-in-head: Accept tags in HEAD or MERGE_HEAD merge: remove global variable head[] merge: use return value of resolve_ref() to determine if HEAD is invalid merge: keep stash[] a local variable Conflicts: builtin/merge.c
2011-10-14Merge branch 'bw/grep-no-index-no-exclude'Junio C Hamano
* bw/grep-no-index-no-exclude: grep --no-index: don't use git standard exclusions grep: do not use --index in the short usage output
2011-10-14Merge branch 'nd/maint-sparse-errors'Junio C Hamano
* nd/maint-sparse-errors: Add explanation why we do not allow to sparse checkout to empty working tree sparse checkout: show error messages when worktree shaping fails
2011-10-12Update draft release notes to 1.7.8Junio C Hamano
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-12Merge branch 'cb/do-not-pretend-to-hijack-long-help'Junio C Hamano
* cb/do-not-pretend-to-hijack-long-help: use -h for synopsis and --help for manpage consistently
2011-10-12Merge branch 'sp/smart-http-failure'Junio C Hamano
* sp/smart-http-failure: remote-curl: Fix warning after HTTP failure
2011-10-12Merge branch 'nd/document-err-packet'Junio C Hamano
* nd/document-err-packet: pack-protocol: document "ERR" line
2011-10-12Merge branch 'jc/parse-options-boolean'Junio C Hamano
* jc/parse-options-boolean: apply: use OPT_NOOP_NOARG revert: use OPT_NOOP_NOARG parseopt: add OPT_NOOP_NOARG archive.c: use OPT_BOOL() parse-options: deprecate OPT_BOOLEAN Conflicts: builtin/revert.c
2011-10-12Merge branch 'rs/test-ctype'Junio C Hamano
* rs/test-ctype: test-ctype: add test for is_pathspec_magic test-ctype: macrofy
2011-10-12Merge branch 'rs/name-rev-usage'Junio C Hamano
* rs/name-rev-usage: name-rev: split usage string
2011-10-12Merge branch 'cs/perl-config-path-send-email'Junio C Hamano
* cs/perl-config-path-send-email: use new Git::config_path() for aliasesfile Add Git::config_path()
2011-10-12Merge branch 'zj/send-email-authen-sasl'Junio C Hamano
* zj/send-email-authen-sasl: send-email: auth plain/login fix
2011-10-12t5403: convert leading spaces to tabsNguyễn Thái Ngọc Duy
The first and last tests use tabs. The rest uses spaces. Convert all to tabs. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-10Update draft release notes to 1.7.8Junio C Hamano
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-10Merge branch 'dm/tree-walk'Junio C Hamano
* dm/tree-walk: tree-walk: micro-optimization in tree_entry_interesting tree-walk: drop unused parameter from match_dir_prefix
2011-10-10Merge branch 'ps/gitweb-js-with-lineno'Junio C Hamano
* ps/gitweb-js-with-lineno: gitweb: Fix links to lines in blobs when javascript-actions are enabled