Commits

Author Commit Message Labels Comments Date
Augie Fackler
overlaymanifest: add iteritems(), used by recent hg versions
Gregory Szorc
Export Git objects from incremental Mercurial changes This replaces the brute force Mercurial to Git export with one that is incremental. It results in a decent performance win and paves the road for parallel export via using multiple incremental exporters.
Augie Fackler
Added tag 0.4.0 for changeset a3c3b8077cbe
Hal Wine
Add test to show dulwich fault on invalid timezone data A recent real world occurrence - user hand edited the timezone field in an hg export to provide a unique value (from prior export). Hg imported the export okay, but dulwich threw an exception. This test shows the fault.
Tags
0.4.0
Hal Wine
scrub bad timezone values before dulwich sees them If dulwich is presented with a "sub minute" timezone offset, it throws an exception (see tests/test-timezone.t). This patch rounds the timezone down to the next minute before passing the value to dulwich.
David Carr
push: provide better output about changed references (issue #64) As pointed out by l33t, Hg-Git's output for push doesn't currently do a very good job of telling the user what happened. My previous changes in this area had moved some of the output from status to note, making it only show if --verbose was specified. However, I hadn't realized at the time that the reference information (though overly verbose) was providing a valueable purpose that otherwise was…
David Carr
push: add more output about what was added (issue #64) l33t pointed out that currently, Hg-Git doesn't provide any confirmation that a push was successful other than the exit code. Normal Mercurial provides a couple other messages followed by "added X changesets with Y changes to Z files". After this change, Hg-Git will provide much more similar output. It's not identical, as the underlying model is substantially different, but the concept is the sa…
Augie Fackler
Merge with master.
David Carr
git_handler: add bookmark compatibility with new bmstore (issue #60) Prior to this fix, tests against the latest hg codebase would fail with: creating bookmarks failed, do you have bookmarks enabled?
Augie Fackler
Merge
Augie Fackler
git_handler: defend against unexported revisions in tag exporting
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…
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
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
Comments 1
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…
  1. Prev
  2. Next