Commit Graph

108 Commits

Author SHA1 Message Date
Dirkjan Ochtman
da20e83f7e Move rebuildmeta into svncommands. 2009-04-08 18:49:44 +02:00
Dirkjan Ochtman
219a0332a1 Fix test_no_dates to not be TZ-sensitive. 2009-04-08 18:29:03 +02:00
Dirkjan Ochtman
3e40215cdb Move diff to svncommands. 2009-04-08 18:21:47 +02:00
Dirkjan Ochtman
2ca3d49704 Move push into svncommands. 2009-04-08 17:53:48 +02:00
Dirkjan Ochtman
f46fc326fe Move fetch_command.fetch_revisions() to svncommands.pull(). 2009-04-08 17:49:30 +02:00
Dirkjan Ochtman
d7c06e5dc2 Put all stupid stuff in it's own module (separate from fetch-command). 2009-04-08 17:34:01 +02:00
Dirkjan Ochtman
34a1dfc322 Cope with date-less revisions. 2009-04-08 13:07:23 +02:00
Daniel Tang
11da64944a Issue #60: Add a svn sub-command to list all authors in a Subversion repository 2009-04-07 22:15:22 -04:00
Daniel Tang
4a245c23b5 Add support for user:pass@url repositories to be hg-like 2009-04-06 11:19:51 -04:00
Augie Fackler
9aa46bc305 Fix and test for directory deletes during branch creation. 2009-04-07 17:38:13 -05:00
Augie Fackler
1ac76b58cf tests: Start providing our own custom hgrc for testing purposes. 2009-03-31 10:50:21 -05:00
Augie Fackler
5a45028f9b rebase: cleanup slightly. 2009-03-30 16:11:45 -05:00
Augie Fackler
eeee067c89 Merge with crew. 2009-04-07 13:48:58 -05:00
Augie Fackler
ba6b0ce8c5 push: Do not attempt to push empty revisions. 2009-03-28 17:50:00 -05: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
Dan Villiom Podlaski Christiansen
d5600d0016 Get rid of .hg/svn/last_rev:
We now calculate the last known revision by iterating over all known
revisions and finding the highest number. Theoretically, we might be
able to simply read the latest entry, but in practice, that's a bug
waiting to happen. For instance, we might want to achieve
compatibility with '.hg/shamap' as generated by the
ConvertExtension, and it not only cannot offer a guarantee of
linearity, but it also allows more than one conversion to source exists.

I'd say we have other problems to care about until this turns up as a
hotspot in profiling. Such as why we leak circa 100MB of memory per
1000 revisions converted ;)
2009-03-27 01:09:36 +01: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
7f302f14cd test_rebuildmeta: Remove the "expected missing" hack now that the branch refactor fixed that problem. 2009-03-03 00:02:09 -06: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
9cbde47428 Stop allowing "missing" branches in the tests, since that is fixed by the branch refactor. 2009-03-02 23:54:32 -06:00
Augie Fackler
23ef2a31d9 Be more explicit about which branch I'm checking. 2009-03-02 23:54:14 -06:00
Augie Fackler
8a85f21bcb Add a genignore utility command that generates an hgignore file by scraping svn:ignore properties. 2009-02-24 14:30:21 -06:00
Augie Fackler
7c17f8a473 Remove useless imports. 2009-01-21 20:29:23 -06:00
Augie Fackler
4626e889e8 Add some comprehensive tests that can be run with nose in order to make it easier to verify stupid and real replay do the same thing. 2009-01-21 20:27:51 -06:00
Patrick Mezard
91ce6eb557 Do not recurse for externals on copied directory in stupid mode
We inherit the source externals, changes to children will appear in the
changelog.
2009-01-14 23:17:13 -06:00
Patrick Mezard
f3f120cc99 test_externals: test branch copy, use absolute externals 2009-01-14 23:17:12 -06:00
Benoit Boissinot
4097b5cf15 remove generators (compat with python2.3) 2009-01-13 15:39:22 +01:00
Graham Booker
8b8a5894cd Fetch: add a filemap argument for use in converting old repositories to
Mercurial.
2009-01-03 20:15:03 -06:00
Patrick Mezard
8fb27961b4 test_utility_commands: fix normalized URL references under Windows 2009-01-02 15:54:07 -06:00
Patrick Mezard
c17e74afd3 Really delete the .hgsvnexternals file when explicitely removed 2009-01-02 15:54:06 -06:00
Patrick Mezard
5629bbe05a Support svn:externals changes via .hgsvnexternals updates 2009-01-02 15:54:05 -06:00
Patrick Mezard
ae52abfad6 Convert svn:externals properties into a .hgsvnexternals file 2009-01-02 15:54:05 -06:00
Patrick Mezard
980ed94914 test_util: check all committed revisions are pushed 2008-12-30 20:33:57 -06:00
Patrick Mezard
f64f7be3b4 fetch_command: cancel patching when encountering binary diffs
Mercurial patching code does not support hunks with embedded nul characters.
2008-12-30 20:33:56 -06:00
Augie Fackler
42010019a9 authormap: Add tests, fix in stupid mode. 2008-12-30 20:14:03 -06:00
Augie Fackler
135487c29b info: Actually determine and show the repo root. 2008-12-30 10:12:16 -06:00
Augie Fackler
c356268aac Import cleanup thanks to pyflakes. 2008-12-24 11:17:50 -06:00
Augie Fackler
3c2aac4c1a utility_commands: Test outgoing and fix it to work again. 2008-12-24 11:12:23 -06:00
Augie Fackler
6f8b90fbad utility_commands: Implement rebuildmeta so that metadata can be rebuilt.
hg_delta_editor: Fixed some longstanding branch_info bugs detected while
rebuilding meta.
2008-12-23 22:19:26 -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
Augie Fackler
bb1ad558ba tests: Fix some missing suite definitions so that running the full testsuite
does not require installing nose.
2008-12-23 17:45:34 -06:00
Augie Fackler
59a1a426b6 push: Improved the rebasing logic for push so that it doesn't break with
keeping branch names during rebase.
2008-12-22 21:21:11 -06:00
Augie Fackler
a8a83f58cc rebase: preserve local branch names.
Note: this commit introduces a dependency on Mercurial 1.1.1 or later.
2008-12-22 21:20:10 -06:00
Augie Fackler
8ec19e30a3 tests: Add an environment variable (HGSUBVERSION_TEST_TEMP) which allows
specification of where temporary repositories (both hg and svn) should be
created. Set it to a RAM disk to make the tests run faster.
2008-12-20 19:13:46 -06:00
Augie Fackler
2377a3ba9f Improve branch closing in the case of a single-rev replacement of one branch
with another. Includes a test case.
2008-12-20 19:04:59 -06:00
Patrick Mezard
d7fb402a05 hg_delta_editor: reset properties of deleted entries
Otherwise, in case of entry replacement the properties are incorrectly
inherited.
2008-12-15 21:57:10 -06:00
Patrick Mezard
d194742e5b test_fetch_command: test file and directory deletions 2008-12-15 21:39:35 -06:00
Augie Fackler
2b165f10a7 util: Add a command to normalize svn urls and use it in a couple of places. Test that it works and prevents failed assertions. 2008-12-11 20:41:57 -06:00
Augie Fackler
dd6ddc6cc1 utility_commands: Add tests for url and info. Fix a bad mock in the process. 2008-12-11 20:24:48 -06:00