Commit Graph

17 Commits

Author SHA1 Message Date
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
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
Augie Fackler
e269de6bdc Remove vestigial references to the tags_info file we no longer need. 2009-05-30 20:28:07 -05:00
Dan Villiom Podlaski Christiansen
4464869581 Remove the 'outgoing' wrapper, and use the Mercurial infrastructure instead. 2009-05-22 15:12:31 +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
Dan Villiom Podlaski Christiansen
25a2353e91 Switch to using url scheme wrappers instead of duplicating each command we wrap.
The 'hg svn url' command has been killed; the replacement is
'.hg/hgrc'. More stuff related to its disappearance has been stripped,
including two tests.

HgChangeReceiver now takes a UUID argument, which it uses to ensure
that remote repositories remain unchanged. This is a temporary
solution, and I'm not entirely satisfied with how it's done either.

Access to the UUID file has been isolated in a HgChangeReceiver
property.

Some more tests have been updated to use ui.pushbuffer()/popbuffer(),
and to pass through the Mercurial API.

Moved the arguments to wrappers.pull() to the UI configuration.

Also, remove HgChangeReceiver.opts in favour of a 'usebranchnames'
instance & configuration variable. The name is taken from the
ConvertExtension.
2009-05-15 19:18:43 +02:00
Dirkjan Ochtman
da20e83f7e Move rebuildmeta into svncommands. 2009-04-08 18:49:44 +02:00
Dan Villiom Podlaski Christiansen
d5600d0016 Get rid of .hg/svn/last_rev:
We now calculate the last known revision by iterating over all known
revisions and finding the highest number. Theoretically, we might be
able to simply read the latest entry, but in practice, that's a bug
waiting to happen. For instance, we might want to achieve
compatibility with '.hg/shamap' as generated by the
ConvertExtension, and it not only cannot offer a guarantee of
linearity, but it also allows more than one conversion to source exists.

I'd say we have other problems to care about until this turns up as a
hotspot in profiling. Such as why we leak circa 100MB of memory per
1000 revisions converted ;)
2009-03-27 01:09:36 +01:00
Augie Fackler
7f302f14cd test_rebuildmeta: Remove the "expected missing" hack now that the branch refactor fixed that problem. 2009-03-03 00:02:09 -06:00
Augie Fackler
9cbde47428 Stop allowing "missing" branches in the tests, since that is fixed by the branch refactor. 2009-03-02 23:54:32 -06:00
Augie Fackler
4626e889e8 Add some comprehensive tests that can be run with nose in order to make it easier to verify stupid and real replay do the same thing. 2009-01-21 20:27:51 -06:00
Benoit Boissinot
4097b5cf15 remove generators (compat with python2.3) 2009-01-13 15:39:22 +01:00
Augie Fackler
6f8b90fbad utility_commands: Implement rebuildmeta so that metadata can be rebuilt.
hg_delta_editor: Fixed some longstanding branch_info bugs detected while
rebuilding meta.
2008-12-23 22:19:26 -06:00