Commit Graph

34 Commits

Author SHA1 Message Date
Augie Fackler
ae5062ada9 Clean up TODOs that are no longer relevant. 2009-04-13 21:19:13 -05:00
Augie Fackler
04a99bbad0 Move wrappers for hg commands to their own module. 2009-04-10 22:38:29 -05:00
Dirkjan Ochtman
219a0332a1 Fix test_no_dates to not be TZ-sensitive. 2009-04-08 18:29:03 +02:00
Dirkjan Ochtman
34a1dfc322 Cope with date-less revisions. 2009-04-08 13:07:23 +02:00
Augie Fackler
648006ec19 branches: change handling again, but this time a little less magic.
This change means that files located in the actual branches directory will now be wholly
ignored. If we want to handle those correctly, it will take a reasonably large amount of work
and probably a configuration flag. Also, any non-related paths outside of branches/trunk will
be explicitly ignored, which is similar to the somewhat accidental pre-branch-refactor
behavior. Finally, any unrelated files located as children of branches will cause the directory
in branches to be used as the branch - not, as recently was the case, the directory immediately
containing that file.
2009-03-28 16:38:57 -05:00
Augie Fackler
9bb1cfc43f Stopped idiotic filtering of revisions that did not edit something branches/tags/trunk.
Fixed a bunch of tests as a result. This likely will make new conversions of some repos have new revisions in them.
2009-03-27 16:56:07 -05:00
Augie Fackler
6b854b9187 fetch: Fix a bogus case where no files in the root level of trunk caused breakage in the branch detection. 2009-03-09 12:01:40 -05:00
Augie Fackler
5771c60c73 Refactor branch handling to be much more dynamic (and hopefully robust).
This should allow fixing of several outstanding issues with branch handling. Note that this is a *massive* change to one of the oldest parts of hgsubversion, so it might introduce bugs not caught by the testsuite.
2009-03-02 23:58:38 -06:00
Augie Fackler
7c17f8a473 Remove useless imports. 2009-01-21 20:29:23 -06:00
Augie Fackler
c6cb3f3922 fetch: Refactor extra creation to be shared by real and diff replay.
Add convert-compatible meta information to extra.
2008-12-23 11:10:32 -06:00
Patrick Mezard
d194742e5b test_fetch_command: test file and directory deletions 2008-12-15 21:39:35 -06:00
Augie Fackler
5c3930383a diff_cmd: more robust, add tests. 2008-12-11 19:49:36 -06:00
Augie Fackler
5a6b6fb661 Fix an apparent regression where branch name didn't get properly stored for
commits forced on empty branches.
2008-12-11 17:34:33 -06:00
Augie Fackler
b504f748bf tests: Fix a missing pass of stupid=True. 2008-12-11 17:19:43 -06:00
Patrick Mezard
cc0dbae2c2 Move and complete execute bit conversion tests into test_fetch_exec.py 2008-12-10 11:03:18 -06:00
Augie Fackler
4ec9620b80 Fix a regression in converting repositories with files copied in from outside
branches/tags/trunk where repo root != project root.
2008-11-25 16:21:57 -06:00
Augie Fackler
0b3d81a7d5 fetch_command: Fix mis-converted executable when svn:executable was set to the
empty string.
2008-11-25 09:45:38 -06:00
Augie Fackler
e9d74f009c Cleanups based on pyflakes output. 2008-11-21 16:21:19 -06:00
Augie Fackler
effb740fae tests: Mock the mercurial.ui.ui class like we really should to capture output.
Has the nice side effect that we can use nose 0.11's multiprocess plugin.
2008-11-14 16:52:30 -06:00
Patrick Mezard
56c1f22424 Fix basic issues with tests on Windows
- shutil.rmtree() fails if there are any read-only files (svn store)
- Fix files:// URLs
- os.spawnvp()/Popen4() do not exist under Windows, use subprocess
2008-11-09 18:08:35 -06:00
Patrick Mezard
b4460d5cb9 hg_delta_editor: register svn file copies 2008-11-05 13:37:07 +01:00
Augie Fackler
8c7063dc0f Performance fix for branches-from-tags in real replay, which is tied up with
changes that fix problems when trunk is not the oldest branch. Also includes
fixes for copying from a tag that we chose not to create (eg tagging a vendor
branch) and includes tests for all of those things.
2008-11-04 16:38:16 -06:00
Augie Fackler
6a7dd545c7 Fix a bug with added files from outside branches/trunk/tags. 2008-10-27 12:33:52 -05:00
Augie Fackler
327815dcb1 Improved handling of copies from outside of trunk. 2008-10-26 22:39:17 -05:00
Augie Fackler
a4c75a84ab Add a test that proves files in the branches directory don't cause breakage. 2008-10-26 22:12:46 -05:00
Augie Fackler
0463db2112 svn 1.4 and 1.5 have different ideas of diff output for prop changes. 2008-10-09 23:37:22 -05:00
Augie Fackler
3524910c61 Refactor tests so I can reuse code more. 2008-10-08 20:09:28 -05:00
Augie Fackler
e463836499 Add a small stack of tests that exercise some of the interesting special cases. 2008-10-08 18:17:29 -05:00
Augie Fackler
379921079b Add a quick test for diff-based pull. 2008-10-08 08:14:31 -05:00
Augie Fackler
7a17d8e401 Add a basic system for running the hgsubversion tests (although not the svnwrap ones) without requiring Nose. Nose is still the recommended way to run the tests.
Also added some tests for pushing.
2008-10-07 22:13:14 -05:00
Augie Fackler
5bcc1b653d Add some basic tests of branching. 2008-10-07 20:43:44 -05:00
Augie Fackler
e199e56609 Started a meaningful test suite. 2008-10-07 18:42:43 -05:00
Augie Fackler
df5906b82e Rename this file so I can have a file that tests the other bits of fetch. 2008-10-07 17:46:43 -05:00
Augie Fackler
6f047e7f60 Reorganized the testing infrastructure a bit so that svnwrap is really separate from the rest of the project. Also made it easier to add more tests in the future without making the directory full of annoying files. 2008-10-03 09:41:25 -05:00