Commit Graph

13 Commits

Author SHA1 Message Date
Patrick Mezard
986ab1aeec pushmod: do not delete the whole branch when deleting .hgsub
When deleting .hgsub, and only .hgsub, the root directory '' was marked as
changed. Since it was not listed in the existing directory list, this single
record was enough to trigger a deletion of the current branch. We changed the
directory parser to always emit the '' element.
2011-02-13 20:14:01 +01:00
Patrick Mezard
fe5402cb96 svnexternals: preliminary support for subrepos based externals
At this point, only pulling externals definitions into .hgsub and .hgsubstate
is supported. One difference between subrepos and svn:externals is the former
separate the source definition and target revision in two files, while
svn:externals definitions contain both. To handle this, the svn:externals
revision references is replaced with a {REV} placeholder and stored in .hgsub,
prefixed with the external base directory separated with a ':', while the
revision is extracted in .hgsubstate.

For instance, the following external:

    -r3 ^/externals/proj2@2 deps/proj2

Becomes:

    (.hgsub)
    deps/proj2 = [hgsubversion] :-r{REV} ^/externals/proj2@2 deps/proj2

    (.hgsubstate)
    3 deps/proj2
2010-11-25 21:55:21 +01:00
Patrick Mezard
0cb57d1778 Extract files not to be pushed in util 2010-11-19 20:14:04 +01:00
Patrick Mezard
3213066d78 svnexternals: keep diff() simple for the caller, return a list 2010-11-19 17:07:13 +01:00
Patrick Mezard
8b65a18ce1 svnexternals: hide .hgsvnexternals parsing in parse() 2010-11-19 17:07:13 +01:00
Dan Villiom Podlaski Christiansen
05fd2cecc4 isolate all imports of Subversion modules in svnwrap.
editor: move dependancy on Subversion bindings to svnwrap package.

In the editor, this involves importing the superclass of `HgEditor' as
`svnwrap.Editor'. Additionally, the `delta.svn_txdelta_apply()'
function has been abstracted away into a simpler interface, stored in
`svnwrap.apply_txdelta()'.
2010-03-31 17:51:09 +02:00
fs
c8b4f515f9 remove useless shebang to comfort rpmlint 2010-02-28 22:39:57 +01:00
Augie Fackler
13566db0d1 push: try a little harder to not send invalid paths to svn 2010-02-14 14:06:04 -06:00
Patrick Mezard
1afd95ae82 pushmod: make outdated parent error message more helpful 2010-02-07 15:56:25 +01: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
Patrick Mezard
e32ff65d7c pushmod: pass SubversionRepo directly to commit() 2009-07-18 20:44:33 -05:00
Dirkjan Ochtman
12a485b0c2 pushmod: split push functions out into separate module 2009-06-16 09:12:20 +02:00