Commit Graph

134 Commits

Author SHA1 Message Date
David M. Carr
4665bf2530 tests: unify test-pull-after-strip 2012-09-10 00:27:44 -04:00
David M. Carr
89919e98b2 tests: unify test-pull 2012-09-10 00:27:43 -04:00
David M. Carr
4acf2aa1b4 tests: unify test-octopus 2012-09-10 00:27:41 -04:00
David M. Carr
4672de85cd tests: unify test-merge 2012-09-10 00:27:33 -04:00
David M. Carr
aa31bde6e3 tests: unify test-incoming 2012-09-10 00:27:32 -04:00
David M. Carr
06248858ad tests: unify test-hg-tags 2012-09-10 00:27:30 -04:00
David M. Carr
6a856e878c tests: unify test-hg-branch 2012-09-10 00:27:17 -04:00
David M. Carr
902925dc8c tests: unify test-hg-author 2012-09-10 00:27:16 -04:00
David M. Carr
66201c79ab tests: unify test-git-workflow 2012-09-10 00:27:14 -04:00
David M. Carr
315765db73 tests: unify test-git-tags 2012-09-10 00:27:12 -04:00
David M. Carr
50404ed1bf tests: unify test-git-submodules 2012-09-10 00:27:09 -04:00
David M. Carr
2b7092669d tests: unify test-git-clone 2012-09-10 00:26:59 -04:00
David M. Carr
c1849beb59 tests: unify test-file-removal 2012-09-10 00:26:58 -04:00
David M. Carr
62185c7a94 tests: unify test-empty-working-tree 2012-09-10 00:26:43 -04:00
David M. Carr
8ba7aae895 tests: unify test-convergedmerge 2012-09-10 00:26:41 -04:00
David M. Carr
2010c1fc34 tests: unify test-conflict-2 2012-09-10 00:26:39 -04:00
David M. Carr
43dcf302b7 tests: unify test-conflict-1 2012-09-10 00:26:37 -04:00
David M. Carr
8abb31d212 tests: unify test-help 2012-09-10 00:26:33 -04:00
David M. Carr
86f7189548 tests: unify test-keywords 2012-09-10 00:25:59 -04:00
David M. Carr
25923e2745 tests: upgrade run-tests.py
This is the version from Hg 2.3.
2012-09-10 00:24:47 -04:00
Augie Fackler
fbc67fee2e Merge master into next. 2012-09-09 16:13:02 -05:00
David M. Carr
1b832796d9 push: state when no changes are found 2012-09-05 23:27:31 -04:00
David M. Carr
050798d918 push: only output updated refs 2012-09-05 23:27:31 -04:00
David M. Carr
fb9384235f push: return 1 if no changes found, 0 if success
While working on some other tests, I noticed that the push command was returning
exit code 1 on success.  This changeset makes hgrepo.push use the same return
code contract as localrepo.push, which makes the exit codes behave as expected.
2012-09-05 23:27:31 -04:00
David M. Carr
6d5f028bb1 tests: fix exec mode on test-help and test-keywords
These tests were being skipped with "not executable" messages
2012-09-05 23:27:31 -04:00
David M. Carr
20a3702adc revsets: add fromgit and gitnode selectors
Support for Hg 1.5.4 was removed, as it doesn't support revsets and is older
than the earliest version we want to put special effort into supporting.
2012-08-22 23:39:45 -04:00
David M. Carr
11cde56154 templatekw: add support for gitnode template keyword 2012-08-22 23:39:45 -04:00
David M. Carr
9e4da6cfb3 help: add additional help topics 2012-08-22 23:39:45 -04:00
Artem Tikhomirov
d87f82457b Subrepos: generate .hgsubstate and .hgsub based on gitlinks and .gitmodules, preserve gitlinks on hg commit export. Tests included. Dependency from PyPI's ordereddict to use OrderedDict 2012-08-06 18:30:33 +02:00
David M. Carr
3c9f459864 tests: fix for hg 1.5.4
On Hg 1.5.4, util.version() appears to return "unknown", which wasn't an
expected value in the version parsing logic in test-incoming and test-outgoing.
The net result of the change is that test-incoming no longer fails in 1.5.4,
but is skipped instead.
2012-08-04 14:43:48 -04:00
David M. Carr
66df8cc78c tests: fix test-merge and test-octopus
Both were failing due to extra spaces in the output from merges, which seems
to have been caused by a sed expression not working as intended.  According
to my copy of "man re_format", basic regular expressions (such as used by sed
without the -E option) don't support using + as a special character.  Thus, I
replaced it with one of the recommended alternatives (x+ to xx*).
2012-08-03 01:24:03 -04:00
Augie Fackler
58e29c9254 tests: cope with change in git merge output format 2012-07-31 17:08:37 -05:00
David M. Carr
f89059b98d tests: tweak which hg versions run test-pull-after-strip
Without this change, the test is skipped for modern versions of Mercurial
with minor version less than 5, despite the test actually passing for said
versions.
2012-07-31 22:55:15 -04:00
Augie Fackler
768d569dec tests: cope with yet another git output format change 2012-04-21 12:37:08 -05:00
Augie Fackler
9ada7156ea test-url-parsing.py: add a test for a username that starts with a number
This had broken at some point, and it's currently fixed. Added a test
to keep it from regressing in the future.
2012-04-20 21:16:32 -05:00
Augie Fackler
ecc1e7635e test-url-parsing.py: stop manually enumerating test methods 2012-04-20 21:11:19 -05:00
Augie Fackler
ebdcf136f1 tests: update for newer git output format 2012-03-31 13:35:49 -05:00
Keshav Kini
89e9168ff4 Remove illegal characters from username/email
Includes a doctest and tests in test-hg/author for the correct behavior.
2012-02-15 09:30:06 +08:00
Jason R. Coombs
c927a00fe4 Strip trailing slash for heroku-style URLs. Fixes #31. Includes a regression test for the fix. 2012-01-27 22:48:55 -05:00
Augie Fackler
2d280d3dfb Update for newer dulwich and hg versions. 2012-01-27 11:06:27 -06:00
Tay Ray Chuan
29bac75cc1 tests: accomodate changes in git-merge output
Since git v1.7.7, merge outputs its status in the form

  Merge made by the * strategy.

Use a regex substitution, so that older versions are handled
successfully as well.

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
2011-10-09 13:39:37 -05:00
Ehsan Akhgari
d57f385799 Improve the parsing of author lines from Mercurial to generate committer and author lines that git can correctly understand
Signed-off-by: Ehsan Akhgari <ehsan.akhgari@gmail.com>
---
I found a number of bugs when I was trying to convert Mozila's hg repository
to git using hg-git.  This patch fixes a number of bugs with irregular
author lines present in hg repositories.  Git cannot correctly process a
commit object which has a committer or author line in a format that it does
not understand, which makes it not be able to handle the repositories
with have such commit objects.

The added test cases shows the irregular cases that this patch is able to
deal with.
2011-09-09 16:12:49 -05:00
Augie Fackler
7659e2b8a6 outgoing: abort on broken hg versions rather than printing wrong results 2011-09-09 16:08:31 -05:00
Augie Fackler
5286104b4d test-incoming: test updates for progress capturing 2011-09-09 15:49:31 -05:00
Augie Fackler
9b926199fe Merge test fixes for dulwich changes and output changes. 2011-09-09 15:44:25 -05:00
Augie Fackler
43c3024db6 Fix all-version-tests. 2011-07-19 08:11:02 -05:00
Augie Fackler
0e48fa29cb test-url-parsing: update expecations missed by 70247167a4b5 2011-07-13 08:06:52 -05:00
Junichi OKADOME
41fa77794d to be recognized port number in path to repository 2011-07-13 17:51:16 +09:00
Augie Fackler
fbaa1cbcfb Test output format tweaks for test-outgoing. 2011-06-19 10:34:10 -05:00
Augie Fackler
5344bfdeb2 test-incoming: fixes for hg 1.7 2011-06-17 16:20:08 -05:00