Commit Graph

138 Commits

Author SHA1 Message Date
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
Augie Fackler
9ec1da5d2e Merge with mpedersen. 2009-07-05 21:13:13 -05:00
Michael J. Pedersen
52ffb9f9dd Second fix required for our tags to work. 2009-07-02 16:37:33 -05:00
Michael J. Pedersen
45d726e3c6 This patch fixes, partially, an issue with tagpaths.
I found that, when using the tagpaths variable, I would actually get fatal
exceptions when the clone was happening. This line prevents the fatal
exception from occurring.
2009-07-02 16:12:09 -05:00
Augie Fackler
a78e0c54cf tags: be more aggressive about not copying from tags we do not have 2009-07-01 14:43:43 -05:00
Augie Fackler
0b5a9621bd tags: handle copyfrom old versions of tags more correctly 2009-07-01 14:42:46 -05:00
Augie Fackler
3a686b9460 tags: allow editing tags of closed branches without reopening the branch 2009-06-26 14:53:58 -05:00
Augie Fackler
e38b2d76ae tags: handle tags from edited tags. 2009-06-26 11:12:14 -05:00
Augie Fackler
7d59773522 tags: Handle edits to edited tags. 2009-06-26 10:34:32 -05:00
Augie Fackler
088caa5246 tags: handle editing a tag and its source branch simultaneously 2009-06-23 22:15:20 -05:00
Augie Fackler
35a0874bd4 tags: reinstate a tag map file in a better way 2009-06-23 21:33:40 -05:00
Augie Fackler
2c9a8097db tags: handle edits to tags as gracefully as possible 2009-06-23 21:38:27 -05:00
Dirkjan Ochtman
5f07c4ad16 svncommands: get update working again
Needs tests. May be better as a wrapper, triggering on r\d+.
2009-06-16 14:10:57 +02:00
Dirkjan Ochtman
3f9bc70ee4 wrappers: save tbdelta in one place for both stupid and replay 2009-06-16 13:59:03 +02:00
Dirkjan Ochtman
d74dc3b1e1 svnrepo: remove unused localsvn decorator 2009-06-16 13:33:30 +02:00