Commit Graph

203 Commits

Author SHA1 Message Date
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
25434e7bb3 copies: fix under-reporting of copies in hg 2009-10-16 19:09:25 -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
5af1192627 test_util: sort imports 2009-09-15 22:34:53 -04:00
Augie Fackler
c7cf7e9acc Add a test for URLs that have spaces in them. 2009-09-15 21:57:17 -04:00
Augie Fackler
63bdeaaa76 test_util: fix up line endings 2009-08-12 16:54:21 -04:00
Augie Fackler
cd45b27283 test_util: specify LANG=LC_ALL=C so l10n stops breaking tests 2009-09-15 22:33:41 -04:00
Augie Fackler
78ab48bb18 Merge win32 fixes 2009-08-08 08:01:24 -05:00
Risto Kankkunen
a58890b5be No os.kill() in Windows, use ctypes to call Win32 TerminateProcess() 2009-07-29 19:01:13 +03:00
Risto Kankkunen
0db6274d7c Reclaim repository object to avoid tearDown() failing to remove the open file 'testrepo/db/rep-cache.db' 2009-07-29 18:38:28 +03:00
Risto Kankkunen
1f2d044467 Make tearDown() be able to delete read-only files to avoid an exception when removing 'testrepo/db/format' 2009-07-29 18:03:02 +03:00
Risto Kankkunen
7ef4f586e9 Avoid 'Abort: Illegal repository URL' exception 2009-07-29 17:41:40 +03:00
Risto Kankkunen
86c848fa77 Avoid 'ValueError: close_fds is not supported on Windows platforms' exception 2009-07-29 17:26:29 +03:00
Risto Kankkunen
33f76a3f2d No os.spawnvp() in Windows, use subprocess.call() instead 2009-07-29 16:34:15 +03: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
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
4531a85f02 wrappers: make push aborts if uncommitted changes 2009-07-18 20:44:33 -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
51e7cf285e tests: test for heads equality instead of branchtags
branchtags may exclude other heads which could be dissimilar.
2009-06-16 13:58:39 +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
Dirkjan Ochtman
c9ba1e00a4 maps: make sure AuthorMaps don't overwrite themselves, fix overriding
Author maps for the Python repo got truncated because of the author map stupidly
writing upon itself. This patch implements a better and faster scenario, where
entries will only be written to the saved author map if they're not coming from that
file. They're also now streamed into the file directly, instead of having to re-open
the file on every entry, and formatting is preserved.
2009-06-15 16:09:27 +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
Augie Fackler
34e86485e6 tests: make comprehensive tests work properly with nose and run.py 2009-06-15 12:26:20 -05:00
Augie Fackler
ca9949dbb3 tests: fix for new branch heads change in upstream hg. 2009-06-15 12:26:19 -05:00
Dirkjan Ochtman
426eb3fef6 invert the svnmeta/editor relationship 2009-06-11 18:49:52 +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
23dd79e66d editor: simplify HgChangeReceiver constructor signature 2009-06-10 13:32:10 +02:00
Dirkjan Ochtman
3a67c8f4bb uisetup: use a single loop/abstraction for wrapping all the commands 2009-06-10 12:06:31 +02:00
Dirkjan Ochtman
bbb2a00b42 tags: end branch while tagging instead of creating extra changeset 2009-06-10 09:35:45 +02:00
Dirkjan Ochtman
0c6b24e964 branches: correctly deal with branch closing directly after copy/rename 2009-06-11 18:00:58 +02:00
Dirkjan Ochtman
0adf46f3a3 svncommands: add verify command 2009-06-11 19:14:05 +02:00
Dirkjan Ochtman
f6a407653c tests: add -A option to run.py for running comprehensive tests 2009-06-11 11:34:37 +02:00
Dirkjan Ochtman
f18ad364f2 tests: send warning to stderr instead of redirected stdout 2009-06-11 11:39:45 +02:00
Augie Fackler
a059a4c8da urls: Make sure we preserve username in urls given to ssh. 2009-06-06 11:53:21 -05:00
Augie Fackler
6464b37601 tags: Fix an improper parent calculation. 2009-06-01 11:21:47 -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
Augie Fackler
c8e1c2c71d tags: fix handling for certain nonstandard tag layouts. 2009-05-30 20:18:14 -05:00
Augie Fackler
f7aa9c1fa8 test_tags: Add a test that verifies tags get deleted properly even in the presence of somewhat odd branching. 2009-05-30 19:46:03 -05:00
Dirkjan Ochtman
84e206b518 Use tbdelta to push added tags into .hgtags. 2009-05-29 15:28:44 +02:00