Commit Graph

152 Commits

Author SHA1 Message Date
Dirkjan Ochtman
3a67c8f4bb uisetup: use a single loop/abstraction for wrapping all the commands 2009-06-10 12:06:31 +02:00
Dirkjan Ochtman
105e824d6f uisetup: move clone and push/pull wrappers to wrappers module 2009-06-10 11:35:59 +02:00
Dirkjan Ochtman
278e7ab8ca stupid: simplify stupid committing code 2009-06-10 10:15:57 +02:00
Dirkjan Ochtman
faacd9fbbc branches: simplify branch deletion a little bit 2009-06-10 09:51:33 +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
62db97095b tags: obey usebranchnames setting 2009-06-10 09:30:32 +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
Augie Fackler
a059a4c8da urls: Make sure we preserve username in urls given to ssh. 2009-06-06 11:53:21 -05:00
Augie Fackler
2169476b47 wrappers: Python 2.4 compat. 2009-06-01 11:50:12 -05:00
Augie Fackler
6464b37601 tags: Fix an improper parent calculation. 2009-06-01 11:21:47 -05:00
Augie Fackler
bb9730ee84 svnexternals: Change an absolute import to be relative.
Reported independantly by several people.
2009-05-30 20:49:51 -05:00
Augie Fackler
4ef172f3b6 hg_delta_editor: fix missing-plaintext fetching 2009-05-30 15:35:24 -05:00
Augie Fackler
1ae27b3192 version: fix version calculation for new repo layout. 2009-05-30 15:34:51 -05: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
Augie Fackler
19d2b38555 push: Prevent pushing of edits to .hgtags to svn. 2009-05-30 20:55:21 -05:00
Augie Fackler
c8e1c2c71d tags: fix handling for certain nonstandard tag layouts. 2009-05-30 20:18:14 -05:00
Augie Fackler
0fdcf661f0 tags: Fix parent detection so that copyfrom trunk@5 correctly falls back to trunk@4 if trunk@5 is not in the revmap. 2009-05-30 13:44:33 -05:00
Dirkjan Ochtman
1a15140873 Inline HgChangeReceiver.load_base_from_ctx(). 2009-05-29 22:48:27 +02:00
Dirkjan Ochtman
8530b7ce85 Move HgChangeReceiver.branches_in_paths() to the stupid module. 2009-05-30 11:11:04 -05:00
Dirkjan Ochtman
84e206b518 Use tbdelta to push added tags into .hgtags. 2009-05-29 15:28:44 +02: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
5d162d93a3 Extract branch closing from stupid/editor into separate function. 2009-05-29 15:29:40 +02:00
Dirkjan Ochtman
d1fd971578 Get rid of duplicate branch closing detection code for stupid mode. 2009-05-29 13:12:28 +02:00
Dirkjan Ochtman
732ec34ab2 Add some comments for rebuildmeta, simplify a little. 2009-05-29 12:36:30 +02:00
Dirkjan Ochtman
1bebc2ff75 Reorder different commit blocks. 2009-05-29 12:36:27 +02:00
Dirkjan Ochtman
78174e1ae9 Extract closed_revs into closebranches and closedrevs.
Also add some comments to make the flow clearer in hge.commit_current_rev().
2009-05-29 12:36:23 +02:00
Dirkjan Ochtman
d309abb343 Abstract out a branchedits() function. 2009-05-29 11:45:08 +02:00
Dirkjan Ochtman
ce7d6dfcca Generate separate data structure containing revision's tags/branches changes. 2009-05-29 17:33:52 +02:00
Dirkjan Ochtman
2d6b72dfd0 Simplify pulling revs a bit, unify stupid/replay interfaces. 2009-05-28 10:57:09 +02:00
Dirkjan Ochtman
eff8c21a6c Merge hge._is_path_tag() and hge._split_tag_path(). 2009-05-28 09:58:00 +02:00
Dirkjan Ochtman
0b875d5050 Move HgChangeReceiver.aresamefiles() to before the editor methods. 2009-05-28 09:57:28 +02:00
Dirkjan Ochtman
a06d403303 Move exception classes in hg_delta_editor up top. 2009-05-28 09:57:00 +02:00
Dirkjan Ochtman
e9d43912e9 Replace stash_exception_on_self() by @ieditor. 2009-05-28 09:55:33 +02:00
Dirkjan Ochtman
2c3445fb61 Merge fetch_history_at_paths() and revisions() in svn wrappers. 2009-05-28 09:54:41 +02:00
Dirkjan Ochtman
a4e1b66614 Author maps: strip comments. 2009-05-28 09:44:47 +02:00
Dirkjan Ochtman
a93bb5d115 Author maps: code/message style (prevent line continuations). 2009-05-28 09:44:08 +02:00
Dirkjan Ochtman
7e0ec65639 Author maps: handle lines without = gracefully. 2009-05-28 09:41:00 +02:00
Augie Fackler
c4ba46f1f0 push: don't refuse to push if it looks like we haven't pulled all changes.
We can't rely on the most-recent change number matching our most-recent
change number because there can be changes in svn that produce no
corresponding hg changeset.
2009-05-27 21:40:58 -05:00
Augie Fackler
edc85a5efe Fix a bug in branch ancestry calculation. 2009-05-22 23:38:01 -05:00
Dan Villiom Podlaski Christiansen
dc410cd4c5 hg_delta_editor: do not raise an error for bad symlinks, but warn instead. 2009-05-22 17:47:09 +02:00
Dan Villiom Podlaski Christiansen
4464869581 Remove the 'outgoing' wrapper, and use the Mercurial infrastructure instead. 2009-05-22 15:12:31 +02:00
Dan Villiom Podlaski Christiansen
3019e64c19 improve reliability of Subversion checks.
Use the presence of the UUID file for recognising a Subversion-enabled
repository locally, and the 'subversion' capability in for recognising
them wrappers.outgoing() remotely.0
2009-05-20 21:49:01 +02:00
Dan Villiom Podlaski Christiansen
0f6b91a6ff remove pointless rstrip('/') 2009-05-20 21:11:34 +02:00
Dan Villiom Podlaski Christiansen
ce861ee5d6 Mention what failed when given a non-numeric revision to clone/pull.
Replace test_branch_tip_update_to_branch_anchor with test_branch_pull_anchor
2009-05-20 21:15:47 +02:00
Dan Villiom Podlaski Christiansen
766236992e don't retain authormap and filemap options 2009-05-20 19:07:12 +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
Dan Villiom Podlaski Christiansen
60bc888ea1 wrappers: remove unused clone() function.
Also, tweaked a few comments and status messages, and added some whitespace.
2009-05-20 18:11:55 +02:00
Dan Villiom Podlaski Christiansen
8ccdbbe1e9 Minor tweaks to wrapper documentation. 2009-05-19 11:43:49 +02:00
Augie Fackler
5024c1f280 Merge with crew. 2009-05-26 22:22:00 -05: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