Commit Graph

29 Commits

Author SHA1 Message Date
Dan Villiom Podlaski Christiansen
341229e195 svnmeta: abort when no UUID given and none is stored on disk.
Previously, not passing a UUID when instantiating an SVNMeta instance
would cause it to succeed even if no UUID was previously known. First
when the UUID was actually read would an exception be raised.

This slight refactoring of _set_uuid() makes it so an exception is
raised immediately. While at it, the exception message is changed to
be slightly more accurate and helpful.
2010-11-11 21:32:22 +01:00
Dan Villiom Podlaski Christiansen
945db21a4e test_utility_commands: use self.assertMultiLineEqual().
The previous assertStringEqual() utility method pointed to standard
output. This is fairly annoying when running our own test-runner as it
suppresses that output. The assertMultiLineEqual() method shows
essentially the same information in the AssertionError itself.

While at it, all other comparisons that contain line-breaks are made
to use assertMultiLineEqual().
2010-11-11 21:30:31 +01: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
Dirkjan Ochtman
4e8189acf4 merge commands from utility_commands into svncommands 2010-02-26 15:00:15 +01:00
Dirkjan Ochtman
e5b9813875 tests: silence test suite by using quiet UIs everywhere 2010-02-26 14:50:22 +01:00
Dirkjan Ochtman
525ead6e57 svncommands: make repo optional (useful for things like listauthors) 2010-02-23 17:16:51 +01:00
Augie Fackler
555e763e54 utility_commands: fix hg svn genignore for single-directory mode 2010-02-06 11:13:55 -06:00
Augie Fackler
ebcd96fd15 utility_commands: unbreak hg svn info with single-directory clones 2010-02-06 10:57:58 -06:00
Jason Ostrander
f59461883f Add a -r option to hg svn. Use with hg svn info to change the mercurial rev. 2009-12-10 13:04:57 -08:00
Dirkjan Ochtman
3a67c8f4bb uisetup: use a single loop/abstraction for wrapping all the commands 2009-06-10 12:06:31 +02:00
Dan Villiom Podlaski Christiansen
4464869581 Remove the 'outgoing' wrapper, and use the Mercurial infrastructure instead. 2009-05-22 15:12:31 +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
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
fd6234cd19 rebase: moved to wrappers, now a wrapper around rebase triggered with --svn. 2009-04-13 21:51:12 -05:00
Augie Fackler
04a99bbad0 Move wrappers for hg commands to their own module. 2009-04-10 22:38:29 -05:00
Augie Fackler
490751fdce Refactor commands to wrap their hg equivalent adding a --svn flag where sane. 2009-04-10 18:47:18 -05:00
Dirkjan Ochtman
b254838e8f Work with simple command table instead of decorators. 2009-04-10 23:09:59 +02:00
Dirkjan Ochtman
f46fc326fe Move fetch_command.fetch_revisions() to svncommands.pull(). 2009-04-08 17:49:30 +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
Augie Fackler
5a45028f9b rebase: cleanup slightly. 2009-03-30 16:11:45 -05: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
Patrick Mezard
8fb27961b4 test_utility_commands: fix normalized URL references under Windows 2009-01-02 15:54:07 -06:00
Augie Fackler
135487c29b info: Actually determine and show the repo root. 2008-12-30 10:12:16 -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
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
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
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