Commit Graph

25 Commits

Author SHA1 Message Date
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
Augie Fackler
b0da25dd93 Support for single-directory clones. 2009-10-16 23:33:41 -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
f12e0f5220 tags: handle the most recent commit being an edit to an svn tag properly 2009-07-18 22:30:59 -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
Augie Fackler
65ebb3cfa8 rebuildmeta: remove any existing tagmap file. 2009-07-05 21:44:35 -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
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
96d7e7ad12 svncommands: use rev instead of verifynode -- should not have to be a node
rev is also more compliant with other hg ui, and would nicely translate into
a -r option from the command line.
2009-06-16 13:04:21 +02:00
Augie Fackler
55bb232af4 verify: take a kwarg for node to check.
Fixes verify tests on case-insensitive filesystems.
2009-06-15 12:26:21 -05:00
Dirkjan Ochtman
67ede8871d put convert_revision in branch-closing csets 2009-06-12 09:24:46 +02:00
Dirkjan Ochtman
0184b19f7d imported patch import-cleanup 2009-06-11 18:57:55 +02:00
Dirkjan Ochtman
0cfc80a3e2 split parts of HgChangeReceiver out into an SVNMeta class
Less obvious things:

- my reordering in the previous was incomplete
- _branch_for_path() was unused, so I removed it
- _svnpath() was removed in favor of identical _remotename()
- I've checked "no cover" bits manually
2009-06-11 18:56:35 +02:00
Dirkjan Ochtman
cd0491f9d5 add a working incoming wrapper command 2009-06-10 14:55:26 +02:00
Dirkjan Ochtman
0adf46f3a3 svncommands: add verify command 2009-06-11 19:14:05 +02:00
Augie Fackler
08b50dea23 Remove defunct nourl lists. 2009-05-30 15:34:29 -05:00
Augie Fackler
e269de6bdc Remove vestigial references to the tags_info file we no longer need. 2009-05-30 20:28:07 -05:00
Dirkjan Ochtman
459151e1b5 Make branch closing more Mercurial-like.
We now use the 'close' value from extra instead of the old closed-branches branch.
2009-05-29 15:24:12 +02:00
Dirkjan Ochtman
732ec34ab2 Add some comments for rebuildmeta, simplify a little. 2009-05-29 12:36:30 +02:00
Dan Villiom Podlaski Christiansen
bb2a7bf94d Use fallbacks in the wrappers for Subversion support, instead of prefixes.
The change only applies to the ambiguous URL schemes: file, http and
https. The others - svn+ssh and svn - behave the same as previously.

For http and https, the wrapping is implemented in 'svnrepo.py': Only
when the attempt to create a httprepo instance fails, will the URL
be considered for Subversion URL.

For file, the ambiguity is treated much like the Mercurial core
distinguishes bundle and directories. In this case, a directory that
looks like a Subversion repository will *not* be considered for a
Mercurial clone.

Tthe command lines are more similar to before this refactor. The only
option added to push & pull is --stupid; others are only added to
clone. Any of these options specified to clone will be added to the
generated '.hgrc'.

Also, the -r/--rev option now works for clone & push.
2009-05-20 18:38:01 +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