diff tests/test_externals.py @ 761:979148947967

svnexternals: generate externals with a revision placeholder This is the first step to separate source URL from revision identifier as required by subrepos.
author Patrick Mezard <pmezard@gmail.com>
date Thu, 25 Nov 2010 21:55:21 +0100
parents d2ef7220a079
children c31a1f92e1c6
line wrap: on
line diff
--- a/tests/test_externals.py
+++ b/tests/test_externals.py
@@ -34,19 +34,32 @@ class TestFetchExternals(test_util.TestB
         # Taken from svn book
         samples = [
             ('third-party/sounds             http://svn.example.com/repos/sounds',
-             ('third-party/sounds', None, 'http://svn.example.com/repos/sounds', None)),
+             ('third-party/sounds', None, 'http://svn.example.com/repos/sounds', None,
+              'third-party/sounds             http://svn.example.com/repos/sounds')),
+
             ('third-party/skins -r148        http://svn.example.com/skinproj',
-             ('third-party/skins', '148', 'http://svn.example.com/skinproj', None)),
+             ('third-party/skins', '148', 'http://svn.example.com/skinproj', None,
+              'third-party/skins -r{REV}        http://svn.example.com/skinproj')),
+
             ('third-party/skins -r 148        http://svn.example.com/skinproj',
-             ('third-party/skins', '148', 'http://svn.example.com/skinproj', None)),
+             ('third-party/skins', '148', 'http://svn.example.com/skinproj', None,
+              'third-party/skins -r {REV}        http://svn.example.com/skinproj')),
+
             ('http://svn.example.com/repos/sounds third-party/sounds',
-             ('third-party/sounds', None, 'http://svn.example.com/repos/sounds', None)),
+             ('third-party/sounds', None, 'http://svn.example.com/repos/sounds', None,
+              'http://svn.example.com/repos/sounds third-party/sounds')),
+
             ('-r148 http://svn.example.com/skinproj third-party/skins',
-             ('third-party/skins', '148', 'http://svn.example.com/skinproj', None)),
+             ('third-party/skins', '148', 'http://svn.example.com/skinproj', None,
+              '-r{REV} http://svn.example.com/skinproj third-party/skins')),
+
             ('-r 148 http://svn.example.com/skinproj third-party/skins',
-             ('third-party/skins', '148', 'http://svn.example.com/skinproj', None)),
+             ('third-party/skins', '148', 'http://svn.example.com/skinproj', None,
+              '-r {REV} http://svn.example.com/skinproj third-party/skins')),
+
             ('http://svn.example.com/skin-maker@21 third-party/skins/toolkit',
-             ('third-party/skins/toolkit', None, 'http://svn.example.com/skin-maker', '21')),
+             ('third-party/skins/toolkit', None, 'http://svn.example.com/skin-maker', '21',
+              'http://svn.example.com/skin-maker@21 third-party/skins/toolkit')),
             ]
 
         for line, expected in samples: