Commits

Author Commit Message Labels Comments Date
Patrick Mézard
wrappers: properly reset encoding when leaving push() This patch just wraps the function body into a try/finally, everything else is indentation and long lines folding changes.
Patrick Mézard
wrappers: remove unused svnurl variable
Patrick Mézard
test_fetch_command: fix if local encoding is not UTF-8 changectx.description() returns what changelog.read() returns which is a description in local encoding. Convert that back to UTF-8 before trying to decode it as UTF-8.
Patrick Mézard
test_util: make repourl() return upper-cased drive letters The SWIG bindings return local svn URLs with upper-case drive letters. Doing the same in repourl() makes the svn info tests URLs match on Windows.
Jun Fang
updatemeta: correctly handle empty metadata When the repo metadata is empty (just created/cloned but not populated yet), there is no lastpulled file or the revmap doesn't have a last entry with hash. Currently "hg svn updatemeta" would crash due to unexpected exception. See issue reported at https://bitbucket.org/durin42/hgsubversion/issue/356/updatemeta-crashes-with-traceback-if-there The fix is to check the existence of lastpulled file …
David Schleimer
svnremoterepo: use and prefer default-push The svnremoterepo class can be constructed without passing it an explicit class. In this case, it previously only considered the default path as the default path to look at. This broke hg svn info when default-push is set to a svn repo but default is not. Chnange it to prefer default-push when available.
Patrick Mézard
stupid: diff with the good revision when restoring branch Converting history like: r1 create trunk r2 remove trunk r3 make some unrelated commit r4 restore trunk from r2 stupid mode would retrieve and apply the diff with r3 instead of the one with r2. All the code deciding r2 is the actual parent was already there, only the revision argument was not passed. This fixes: - test_delete_restore_trunk in comprehensive/test_stupid_pull.py - test_del…
Brad Hall
Add a changegroup hook to update svn metadata
Patrick Mézard
rebuildmeta: accept unrelated svn repo with --unsafe-skip-uuid-check This is useful when switching from an svnsync mirror to the real thing.
Augie Fackler
Merge hg 2.3 fixes from bos.
Bryan O'Sullivan
tests: fix regressions introduced by peer classes in hg 2.3
Bryan O'Sullivan
fix breakage introduced by peer classes in hg 2.3
Bryan O'Sullivan
svnrepo: handle module/class rename in hg 2.3
Brad Hall
add except for AttributeError if youngestrepo doesn't exist It's possible for youngestrepo to not exist in the updatemeta (partial) path if this is the first time svn updatemeta has been run. In that case util.load_string will return None and the .strip() will fail.
Brad Hall
Catch/abort on subversion exceptions in list_dir Give the user an error message if they attempt to pull a non-existent SVN rev instead of a backtrace
ronvoe
Honor SVN auto-props (solves issue #186) The auto-props are read from the users subversion configuration file (~/.subversion/config on posix). System-wide configuration files are not taken into account. The implementation completely bypasses the subversion bindings, because the current bindings provide little support for this functionality.
David Schleimer
Ignore invalid utf8 in commit messages Old svn allowed users to include invalid utf8 in their commits. Since there are real repos with said invalid utf8, we need to be able to import them, even if svn won't.
David Schleimer
Add .noseids to the .hgignore Not having a well-developed personal .hgignore, I get an untracked .noseids every time I rune nosetests. Let's ignore it in the repo .hgignore.
Bryan O'Sullivan
pull: add a hgsubversion.unsafeskip option to omit unwanted revs
Augie Fackler
push test: peek inside svn's pending transaction list on abort This helps us verify that aborting a transaction is being done properly.
Augie Fackler
subvertpy bindings: abort transaction if we can't finalize it This should prevent us from leaking pending transactions on the server.
Augie Fackler
swig bindings: abort transaction if we can't finalize it This should prevent us from leaking pending transactions on the server.
Bryan O'Sullivan
canonicalize svn paths even more awesomely It turns out that SVN has bizarre path canonicalization rules that are sort of close to what urllib.quote does, but different in peculiar ways, and 1.7 suddenly cares deeply about canonicality. For instance, space (' ') maps to %20, but '~' stays unchanged instead of turning into %7e. Along with its new policy of frequent beatings administered to users of its bindings, SVN 1.7 introduces a functi…
Bryan O'Sullivan
ignore the temp fixtures directory
Bryan O'Sullivan
tests: fix automatically generated test names I figured out how to tell nosetests to run just a single test: nosetests -w tests/comprehensive test_stupid_pull:StupidPullTests.test_spaces_in_path -v Trouble is, some of the methods generated in StupidPullTests have bogus names that contain hyphens. This patch fixes that, making it possible to identify the tests properly.
Bryan O'Sullivan
replay: workaround svn not telling us about x/l flags (issue346)
Bryan O'Sullivan
svn_swig_wrapper: canonicalize path
Dan Villiom Podlaski Christiansen
svn verify: use a custom editor and get_revision() Previously, we would fetch each file in the revision/changeset individually. With this change, we fetch the entire revision in one request, and use a custom editor to verify its contents. This is quite a lot faster than the previous means when verifying over the internet. By an order of magnitude or two, in fact. As data is transfered in a single operation, verifying a revision from PyPy took 30 s…
Dan Villiom Podlaski Christiansen
show a total for verification progress
Dan Villiom Podlaski Christiansen
move verify to a file of its own
  1. Prev
  2. Next