Commit Graph

152 Commits

Author SHA1 Message Date
Patrick Mezard
ea1cf945a5 stupid: replace dicts with sets 2010-01-29 23:36:14 +01:00
Patrick Mezard
b0ba5a82b5 replay: disable maybeedit filtering, could discard copy records
Copy records were not taken in account when telling whether a file was changed
or not. Besides, the only place maybeedits were added was when recording
directory copies.
2010-01-29 23:36:14 +01:00
Dan Villiom Podlaski Christiansen
da501a10ca __init__: update docstring to reflect recent change to README 2010-01-11 17:12:33 +01:00
Dan Villiom Podlaski Christiansen
d8cb303ff4 wrappers: calculate and return exact count of changesets added. 2010-01-11 17:12:30 +01:00
Patrick Mezard
8e750663c7 Handle tag subdirectory as tag in replay mode (issue119)
Original version by Dirkjan Ochtman <dirkjan@ochtman.nl>
2010-01-22 18:01:19 -06:00
Patrick Mezard
0e5e640582 svnmeta: internalize tags delta
Original version by Dirkjan Ochtman <dirkjan@ochtman.nl>
2009-12-17 16:34:00 +01:00
Patrick Mezard
208898e524 maps: TagMap tags are non-empty strings 2010-01-18 21:40:29 +01:00
Patrick Mezard
6f1e72e09d editor: remove useless test 2010-01-18 21:40:28 +01:00
Patrick Mezard
b0b5f39efe svnmeta: is_path_tag() is really get_path_tag()
Enforce that returned tags are non-empty.
2010-01-16 17:25:09 +01:00
Patrick Mezard
32c0b86b81 stupid: update filteriterhunks() for hg 1.5 2010-01-10 19:42:13 +01:00
Augie Fackler
58c98f67c2 paths: autoescape paths from the user
This means that users should no longer URI-encode their paths. This is
a change from the past, and may require some small changes to .hg/hgrc.
This fixes certain odd issues resulting from inconsistent handling
of URI-encoding throughout hgsubversion.
2009-12-24 13:30:08 -06:00
Afriza N. Arief
da243c0327 Do URI-encode before opening 2009-12-24 13:10:36 -06:00
Augie Fackler
3e1e3de7b6 setup: write out version info 2009-12-15 09:12:00 -06:00
Augie Fackler
58d5d5297a utility_commands: remove old svn version command in favor of new wrapper 2009-12-14 09:36:22 -06:00
Augie Fackler
6701a5e7ab wrappers: wrap version with a --svn flag 2009-12-14 09:35:04 -06:00
Augie Fackler
b93a29dc3e __init__: document wrapping commands more clearly 2009-12-14 09:34:46 -06:00
Dan Villiom Podlaski Christiansen
a9a41202ed fallback to the previous scheme for file repositories.
This improves compatibility with hg-git.
2009-12-13 17:15:01 +01:00
Dan Villiom Podlaski Christiansen
7a73a82ce0 do not assume that doc-strings are present.
A couple of places in the code assumed that docstrings were set. This
prevented hgsubversion from loading when Mercurial is run under
`python -OO'.
2009-12-13 17:27:19 +01: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
Vitaliy Filippov
315f686548 single: fix push 2009-11-25 23:10:32 -05:00
Daniel Tang
00a47ee1ee push: fix for single directory repository layouts 2009-10-20 14:34:00 -04:00
Augie Fackler
b0da25dd93 Support for single-directory clones. 2009-10-16 23:33:41 -04:00
Augie Fackler
2bd7b60221 replay: fix potential over-reporting of edited files in hg changelog 2009-10-16 18:37:19 -04:00
Augie Fackler
f786e87434 util: make aresamefiles take one file and just be issamefile instead. 2009-10-16 19:09:53 -04:00
Augie Fackler
25434e7bb3 copies: fix under-reporting of copies in hg 2009-10-16 19:09:25 -04:00
Augie Fackler
ac82e0783c stupid: detect renames with empty branchpath properly 2009-10-07 18:27:35 -04:00
Augie Fackler
353c79d612 stupid: remove stray print statements, keep one as a ui.debug 2009-10-07 19:05:01 -04:00
Dirkjan Ochtman
a7e59a56e2 try to deal with weirdly located branches in rebuildmeta (#118) 2009-09-22 16:46:16 +02:00
Augie Fackler
7aa1f575c0 svn_swig_wrapper: minor code cleanup. 2009-09-15 21:34:14 -04:00
Augie Fackler
718efe9b65 stupid: 80col OCD 2009-09-15 21:22:47 -04:00
Chema Cortes
10c378b177 svnwrap: properly escape URLs before giving them to libsvn_*
(patch tweaked somewhat by Augie Fackler)
2009-09-15 18:26:13 -04:00
Augie Fackler
c7cf7e9acc Add a test for URLs that have spaces in them. 2009-09-15 21:57:17 -04:00
David Stanek
6bd96196bb Remove the svn+ from svn+https urls before calling the Subversion API. This was already being done for svn+http urls. 2009-07-20 16:00:37 -04:00
Augie Fackler
f12e0f5220 tags: handle the most recent commit being an edit to an svn tag properly 2009-07-18 22:30:59 -05:00
Max Bowsher
ba817049eb Fix 'parent dir of a branch is deleted' refactoring from 343da84. 2009-07-04 18:12:18 +01:00
Patrick Mezard
8888ce5e4a stupid: take tbdelta closed branches in account
Otherwise, deleting 'branches' will go undetected since it does not touch
existing branches.
2009-07-18 20:44:33 -05:00
Patrick Mezard
98b3ca8540 Bypass demandimport for all svn submodules
This makes convert and hgsubversion work correctly together again
2009-07-18 20:44:33 -05:00
Patrick Mezard
0483c8f48f svnexternals: display svn commands output with --verbose
Really useful to debug svn connectivity or locking problems.
2009-07-18 20:44:33 -05:00
Patrick Mezard
735b575536 Revive svn+http(s) URLs support (issue94)
Telling svn from mercurial repository automatically is not always possible, or
at least not seamlessly. Let 'http://repo.com/svn' be an svn repository,
protected with basic authentication. Trying to clone it directly does something
like:

1- Open it like a mercurial repository:
  * send between command, ask for credentials, fail
  * fallback to static-http, ask for crendentials two times, fail
2- Open it like an svn repository

Mercurial [auth] facility is helpful here, but few people know about it, and it
may seem weird to store svn credentials in mercurial configuration. An svn-like
password manager would not help either because all connections attempts in [1]
fail and it's unlikely we would store credentials in this situation. Instead,
we can clone 'svn+http://repo.com/svn', which will skip step [1].
2009-07-18 20:44:33 -05:00
Patrick Mezard
54d3cf4643 svnrepo: expose the same svnurl than SubversionRepo
Since the ssh+svn URLs depend on supplied credentials, and because we want to
get the actual SVN URL without talking to the remote repository, we duplicate
the work done by SubversionRepo.
2009-07-18 20:44:33 -05:00
Patrick Mezard
3cdd5ec399 svnwrappers: override svn+ssh credentials with supplied ones if any
svn+ssh URLs are special because the authentication layer is not handled by
svn, so they must contain the username to be resolved seamlessly. Until now,
credentials supplied from the command line were ignored when rewriting those
URLs. Fix that.
2009-07-18 20:44:33 -05:00
Patrick Mezard
e32ff65d7c pushmod: pass SubversionRepo directly to commit() 2009-07-18 20:44:33 -05:00
Patrick Mezard
27f9d173fc util: remove swap_out_encoding() deprecated comment 2009-07-18 20:44:33 -05:00
Patrick Mezard
15296e29f4 Extend svnrepos with SubversionRepo and SVNMeta
SubversionRepo and SVNMeta are now hidden behind svnremoterepo and
svnlocalrepo. It unifies the way svn credentials are read from the command line
and configuration file, at the cost of import cycle between svnrepo and
wrappers. It is currently not a big deal thanks to demandimport.
2009-07-18 20:44:33 -05:00
Patrick Mezard
8f7a6948c6 Unify svn credentials handling as config entries
It has 2 benefits:
- It generalizes the use of hgsubversion.username/password initiated in
  push/pull.
- Command line options are no longer need to create SubversionRepo, so we can
  move this out of command handling code.
2009-07-18 20:44:33 -05:00
Patrick Mezard
66eef590dc genignore: collect ignore lines, then write them
Also, ignore the useless hg_repo_path argument, use supplied repository
instead.
2009-07-18 20:44:33 -05:00
Patrick Mezard
4531a85f02 wrappers: make push aborts if uncommitted changes 2009-07-18 20:44:33 -05:00
Augie Fackler
c6bfa418c4 tagmap: missed newline in rebuildmeta warn call 2009-07-06 09:17:26 -05:00
Augie Fackler
1f1893a95a tags: fix a bug triggered by copies from non-branch-roots
I have not included a test case because I can't iron out
the specifics of what causes this bug. This allows
jquery to finish cloning successfully. Further inspection
of the jquery history around 4400:4410 should allow
construction of a meaningful test case.
2009-07-05 22:01:38 -05:00
Augie Fackler
65ebb3cfa8 rebuildmeta: remove any existing tagmap file. 2009-07-05 21:44:35 -05:00