Commit Graph

11 Commits

Author SHA1 Message Date
Bryan O'Sullivan
d3491e56a5 replay: workaround svn not telling us about x/l flags (issue346) 2012-05-13 15:28:50 +02:00
Patrick Mezard
76b3efe6d9 test_util: merge load_fixture_and_fetch() into TestBase method
The middle-term goal is to make TestBase repo_path and wc_path private, so they
can be changed for every load call. This is not required to use nosetests
multiprocess facility as the fixtures create temporary directories but it makes
things much clearer and avoid weird cases where a repository was loaded several
times at the same location in a single test (cf test_startrev). That way we
will be more confident the tests can be parallelized.

The long term goal is to make hgsubversion compatible with nosetests
--processes option.
2012-04-19 18:29:25 +02:00
Patrick Mezard
3f128bd7c4 stupid: handle changes in svn 1.7 diff format
Metadata changes are now represented like:

  Property changes on: a
  ___________________________________________________________________
  Added: svn:executable
  ## -0,0 +1 ##
  +*

instead of:

  Property changes on: a
  ___________________________________________________________________
  Added: svn:executable
     + *

Also, I got tired of massaging the diff with regexps, so I extracted the
parsing logic in parsediff(). This is no small refactoring but it makes things
cleaner and the test suite pass on 1.6 and 1.7 so...
2012-04-19 14:59:50 +02:00
Yonggang Luo
31a518f718 tests: avoid shadowing Python builtin all() 2011-10-12 15:43:31 +08:00
Yonggang Luo
bebd961e2a globally: clean up whitespace around operators and commas to conform with PEP8
Mostly autoformatted by Eclipse. A few manual corrections were
performed where Eclipse's autoformatter did something non-idiomatic.
2011-10-12 15:35:25 +08:00
Dan Villiom Podlaski Christiansen
266d07be60 editor: handle property changes to links.
Previously, property changes to links caused 'link ' to be prepended
to the link destination. Removing a line that prepended it in
Revision::set() appears to fix it. In these cases, the "file marked as
link, but contains data" warning might be triggered. This should be
safe, so it's lowered to a note and the language made less conclusive.

In order to test this, extra revisions are added to the
'symlinks.svndump' fixture. As one of the new revisions add a link
that points to 'link to this', a check that asserted that link
destinations must not start with 'link ' was removed. This change is
safe, as the test later on asserts exact equality with the contents of
the 'links' dictionary.
2010-11-09 13:05:16 +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
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
a9f4c82415 run.py: register and develop test_fetch_symlinks 2008-12-10 11:03:19 -06:00
Augie Fackler
e9d74f009c Cleanups based on pyflakes output. 2008-11-21 16:21:19 -06:00
Patrick Mezard
a46560a49e hg_delta_editor: fix symlink prefix confusion
- SubversionRepo.get_file() strips the symlink prefix
- Enforce that hg_delta_editor symlink data always contains the prefix. The
  alternative was seducing and more consistent with hg content but it makes the
  code more complicated since svn:special can be set before or after the content
  is set, and we need it in apply_textdelta()

This issue fixes jQuery repository conversion at r3674.
2008-11-20 22:41:15 -06:00