Commits

Show all
Author Commit Message Labels Comments Date
David Carr
tests: use fn_git_commit in test-encoding.t In c4849b2dab87, the "commit" function was extracted into a testutil for re-use. However, test-encoding.t was skipped over in that changeset, as I was seeing unexplained test failures. Since those test failures have now been explained (and fixed), this changeset performs the same extraction on test-encoding.t as was done on all the other tests. The version of fn_git_commit that was used in testu…
Bookmarks
next
David Carr
tests: make test-encoding.t compatible with git 1.8.0 It looks like Git 1.8.0 started silently converting latin1 commit messages to utf-8. That changed the result of this test. This changeset alters the test to make it accept both the pre-1.8.0 and post-1.8.0 behaviors. https://raw.github.com/git/git/master/Documentation/RelNotes/1.8.0.txt
David Carr
tests: remove filterhash from test-incoming.t This test had some form of legacy hash filtering, marked with a TODO to remove it when we're only supporting Mercurial 1.5 or later. Well, that time has come, so I removed it.
David Carr
tests: remove mercurial version check from test-incoming.t This test was only running on Mercurial 1.7 or later. Since now we only support versions that are 1.7 or later, there isn't a need to perform this check any more.
David Carr
tests: remove mercurial version check from test-pull-after-strip.t This test was being skipped in Mercurial < 1.5. We don't support Mercurial that old any more, so there isn't a need to worry about it in the tests.
David Carr
tests: convert echos to comments Now that we're in the unified test format, there isn't a need to use echo to provide context to command output. This technique actually ends up resulting in redundant output. To preserve the original context, but eliminate the redundancy, such echo statements have been converted into comment lines.
David Carr
tests: avoid changing the current directory Mercurial allows specifying which repository to use via the -R/--repository option. Git allows a similar function using the --git-dir option. By using these options, in many cases we can avoid checking the current directory. This makes tests easier to understand, as you don't need to remember which directory you're in to understand what's going on. It also makes tests easier to write, as you do…
David Carr
tests: extract git command-line client and dulwich requirements into testutil One or both of these requirements were in almost every test in exactly the same way. Now, these checks are performed in every test that uses the testutil. This makes it easier for test authors to add these checks into new tests (just add a reference to the testutil, which you'd probably want anyway). We considered having each test declare their requirements (currently, either "git" or "dulwich")…
David Carr
tests: let git init create directories when applicable It's functionally equivalent to create a directory, cd into it, git init, and cd out of the directory, or simply git init with the directory specified. In several cases, we were doing the former without performing any other operations in the git repo, which just made the test unneccesarily complex. Even in the case where we still want to cd into the directory, calling git init with the directory …
David Carr
tests: add check for dulwich in test-url-parsing.py Previously, if dulwich wasn't available, this test would fail with a traceback (example included below). This changeset makes it so that the test will be skipped with an informative message if dulwich isn't available. Traceback (most recent call last): File "/Users/carrd/hg-repos/hg-git-queue/tests/test-url-parsing.py", line 6, in <module> from hggit.git_handler import GitHandler File "/…
David Carr
tests: extract commonly used commit/tag functions into testutil library Thanks to Felipe Contreras for the patch which this was based on. The functions were renamed to make it clearer that these are shell functions rather than normal git/hg commands, and to make it clearer which tool is being invoked. Old name | New name ------------------------ commit | fn_git_commit tag | fn_git_tag hgcommit | fn_hg_commit hgtag | fn_hg_tag Extraction from test-encoding…
David Carr
tests: extract extension configuration into a testutil library Thanks to Felipe Contreras for the patch which this was based on. Even though the MQ extension was only used in a single test (test-pull-after-strip.t), I included it in the testutil. It shouldn't hurt anything to have it enabled and not used, and saves us from having to deal with enabling extensions in individual tests at all. Similarly, this changeset results in the graphlog extension being e…
Augie Fackler
Merge
Augie Fackler
Added tag 0.3.4 for changeset 586b7aa96466
Bookmarks
master
Augie Fackler
Release 0.3.4
Tags
0.3.4
David Carr
tests: remove git-daemon check from test-subrepos.t This check is a remnant from back when we were using git-daemon in the tests.
Augie Fackler
Merge obsolete marker fix.
Augie Fackler
test-pull.t: normalize git-merge output
David Carr
overlaychangectx: fix compatibility with mercurial 2.4-rc (no attribute _repo) This isn't a real implementation of phases support. Rather, it's just enough to avoid the traceback. Traceback (most recent call last): File "/usr/local/share/python/hg", line 38, in <module> mercurial.dispatch.run() File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 28, in run sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) File "/usr/local/lib/python…
David Carr
tests: fix check for dulwich in test-subrepos.t In converting this test to the unified format, it looks like we missed this line. It was accidentally being treated as a comment rather than executable.
David Carr
tests: uncomment calls to hghave git Now that hghave git works properly, uncomment the calls, and add ones that were missing.
David Carr
tests: pull in hghave Previously, the hghave checks that were commented out in the tests were broken if uncommented. One cause was that it was expecting hghave in the testdir, while our testdir didn't contain hghave. Now it does. The hghave was pulled unmodified from Mercurial 2.3, to match the version of run-tests.py in use.
David Carr
listkeys: simplify ref stripping expression Eliminate a find that would always return 0, based on an example in git_handler update_hg_bookmarks.
David Carr
pull: don't pull tags as bookmarks This should fix a bug introduced by 4f4ab2d which caused all tags to be duplicated as bookmarks on pull. Test coverage has been added for pull to allow verifying the fix.
David Carr
tests: rename test-pull.t to test-clone.t This test wasn't actually testing anything to do with pulling.
Augie Fackler
Merge
David Carr
push: suppress "exporting hg objects to git" message When communicating with the user on push/outgoing, Mercurial doesn't show a "exporting hg objects to git" message, so we shouldn't. The message has been changed to be shown if --verbose is specified.
David Carr
push: suppress ref output by default When communicating with the user on push, Mercurial doesn't show much on success. Currently, Hg-Git shows every changed ref. After this change, the default output will more closely match Mercurial's regular behavior (no per-ref output), while changed refs will be shown if --verbose is specified, and all refs will be shown if --debug is specified.
David Carr
tests: add coverage for outgoing with bookmark changes only
David Carr
gitrepo: initial support for listkeys This changeset adds test coverage for comparing "hg outgoing -B" in normal Mercurial usage with Hg-Git usage. This didn't match, since previously, gitrepo didn't provide a meaningful listkeys implementation. Now, it does. gitrepo now has access to a GitHandler when a localrepo is available. This handler is used to access the information needed to implement listkeys for namespaces (currently, o…
  1. Prev
  2. Next