Commit Graph

40 Commits

Author SHA1 Message Date
Dan Villiom Podlaski Christiansen
2fa6c3592c maps: map a missing author to '(no author)'
"None" doesn't really make much sense, so we use what 'svn log' shows
instead. This also fixes mapping this author to something else.
2010-10-09 16:20:52 -05:00
Peter Arrenbrecht
1f827f21a6 tests: remove constant rev no from test script 2010-09-08 10:42:53 +02:00
Peter Arrenbrecht
edcee72d6c svnmeta: strip all repeated slashes from subdir 2010-07-28 14:47:44 +02:00
Dan Villiom Podlaski Christiansen
ade1537f2e tests: import test_util as the first module in all relevant tests 2010-07-14 15:39:18 +02:00
Augie Fackler
1d5fa230a4 push: return reasonable status codes to the end user 2010-06-27 21:18:47 -05:00
Augie Fackler
58dc3e11f3 tests: fix misnamed test caught while hunting unrelated bugs 2010-06-27 21:14:36 -05:00
Dirkjan Ochtman
e5b9813875 tests: silence test suite by using quiet UIs everywhere 2010-02-26 14:50:22 +01:00
Augie Fackler
5798f3a681 replay/stupid: raise the correct errno in IOError to fix hg >= e370ad539526
Basically, all the IOErrors we ever raise inside a file commit function
that is sent to commitctx should be ENOENT. This suggests a change
should be made in commitctx to not overload IOError.
2010-02-14 14:04:56 -06:00
Patrick Mezard
1afd95ae82 pushmod: make outdated parent error message more helpful 2010-02-07 15:56:25 +01:00
Dan Villiom Podlaski Christiansen
5a94472195 Change all instantiations of IOError to set both errno and strerror. 2010-01-26 17:36:13 +01:00
Augie Fackler
78ab48bb18 Merge win32 fixes 2009-08-08 08:01:24 -05:00
Risto Kankkunen
a58890b5be No os.kill() in Windows, use ctypes to call Win32 TerminateProcess() 2009-07-29 19:01:13 +03:00
Patrick Mezard
4531a85f02 wrappers: make push aborts if uncommitted changes 2009-07-18 20:44:33 -05:00
Augie Fackler
c4ba46f1f0 push: don't refuse to push if it looks like we haven't pulled all changes.
We can't rely on the most-recent change number matching our most-recent
change number because there can be changes in svn that produce no
corresponding hg changeset.
2009-05-27 21:40:58 -05:00
Dan Villiom Podlaski Christiansen
fae3070938 test_push_command: this test causes an author of None.
This may be unintended, but we should test for it nonetheless.
2009-05-22 13:42:51 +02:00
Dan Villiom Podlaski Christiansen
df55ee21ef test_push_command: improve readability a bit. 2009-05-22 13:41:21 +02:00
Dan Villiom Podlaski Christiansen
8ccdbbe1e9 Minor tweaks to wrapper documentation. 2009-05-19 11:43:49 +02:00
Augie Fackler
94a7ecbe68 Reorganize to have a more conventional module structure.
This means that hgsubversion now uses absolute imports instead of
relative ones, which makes the tests more reliable.
2009-05-13 21:39:39 -05:00
Augie Fackler
57b5041576 Use try/finally in an attempt to stop leaking svnserve processes. 2009-05-13 10:22:18 -05:00
Dan Villiom Podlaski Christiansen
25a2353e91 Switch to using url scheme wrappers instead of duplicating each command we wrap.
The 'hg svn url' command has been killed; the replacement is
'.hg/hgrc'. More stuff related to its disappearance has been stripped,
including two tests.

HgChangeReceiver now takes a UUID argument, which it uses to ensure
that remote repositories remain unchanged. This is a temporary
solution, and I'm not entirely satisfied with how it's done either.

Access to the UUID file has been isolated in a HgChangeReceiver
property.

Some more tests have been updated to use ui.pushbuffer()/popbuffer(),
and to pass through the Mercurial API.

Moved the arguments to wrappers.pull() to the UI configuration.

Also, remove HgChangeReceiver.opts in favour of a 'usebranchnames'
instance & configuration variable. The name is taken from the
ConvertExtension.
2009-05-15 19:18:43 +02:00
Augie Fackler
0ca6ba9b90 push: Add a test that demonstrates base-text detection works 2009-04-24 20:31:17 -05:00
Augie Fackler
04a99bbad0 Move wrappers for hg commands to their own module. 2009-04-10 22:38:29 -05: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
Augie Fackler
ba6b0ce8c5 push: Do not attempt to push empty revisions. 2009-03-28 17:50:00 -05: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
e9d74f009c Cleanups based on pyflakes output. 2008-11-21 16:21:19 -06:00
Patrick Mezard
f1278f2869 push_cmd: delete empty svn directories, refactor directory creation 2008-11-14 16:18:24 -06:00
Patrick Mezard
87d62ad5a3 Extract PushTest common code into test_util.TestBase 2008-11-14 16:18:24 -06:00
Patrick Mezard
e8410f200d test_push_command: fix test_push_existing_file_newly_execute() under Windows 2008-11-14 16:18:24 -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
Augie Fackler
5cb73e2d8d push: Fix missing directory creation for the case of a new dir inside a new dir. 2008-11-09 17:02:07 -06:00
Augie Fackler
dee222b7e9 push_cmd: Further simplified some logic thanks to an improved test. 2008-11-06 09:24:33 -06:00
Augie Fackler
2aaa8bc830 Fixed a problem where if you edited an existing symlink by replacing with another symlink, things would get corrupt. 2008-11-06 09:07:13 -06:00
Augie Fackler
80516ef041 Drop any pretense of supporting svn 1.4.x.
The quality of the SWIG bindings is just too low for this to work reasonably. In theory, 1.4.x will be supported at a future date by ctypes.
2008-11-01 12:23:07 -05:00
Augie Fackler
062345fdbd Add tests for a bunch more cases in pushing to svn. 2008-10-29 22:58:52 -05:00
Augie Fackler
e42248f1e1 Add a test that verifies push works to svn:// servers.
This test will fail if you are running an svnserve on localhost, but it checks and will not touch your data in that case.
Also fixed the push tests, which had been largely broken.
2008-10-29 21:15:36 -05:00
Augie Fackler
b7a86180cd Fix this so the tests can still be run without nose. 2008-10-10 14:18:24 -05:00
Augie Fackler
f80cc03103 Pushing fails in 1.4's SWIG bindings, so double check for that in the test. 2008-10-09 23:36:20 -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