mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
convert: Test svn sink for a repo with tags.
This test case backs the fix in changeset 1e2514ff3be7. The subversion sink used to crash, if the source repo used tags.
This commit is contained in:
parent
a7c1749596
commit
b948193861
@ -134,3 +134,15 @@ hg --cwd b ci -d '5 0' -m 'merge'
|
||||
hg convert -d svn b
|
||||
echo % expect 4 changes
|
||||
svnupanddisplay b-hg-wc 0
|
||||
|
||||
echo % tags are not supported, but must not break conversion
|
||||
|
||||
rm -rf a a-hg a-hg-wc
|
||||
hg init a
|
||||
echo a > a/a
|
||||
hg --cwd a ci -d '0 0' -A -m 'Add file a'
|
||||
hg --cwd a tag -d '1 0' -m 'Tagged as v1.0' v1.0
|
||||
|
||||
hg convert -d svn a
|
||||
svnupanddisplay a-hg-wc 2
|
||||
rm -rf a a-hg a-hg-wc
|
||||
|
@ -335,3 +335,41 @@ At revision 4.
|
||||
<msg>base</msg>
|
||||
</logentry>
|
||||
</log>
|
||||
% tags are not supported, but must not break conversion
|
||||
adding a
|
||||
assuming destination a-hg
|
||||
initializing svn repository 'a-hg'
|
||||
initializing svn working copy 'a-hg-wc'
|
||||
scanning source...
|
||||
sorting...
|
||||
converting...
|
||||
1 Add file a
|
||||
0 Tagged as v1.0
|
||||
writing Subversion tags is not yet implemented
|
||||
At revision 2.
|
||||
2 2 test .
|
||||
2 1 test a
|
||||
2 2 test .hgtags
|
||||
<?xml version="1.0"?>
|
||||
<log>
|
||||
<logentry
|
||||
revision="2">
|
||||
<author>test</author>
|
||||
<date/>
|
||||
<paths>
|
||||
<path
|
||||
action="A">/.hgtags</path>
|
||||
</paths>
|
||||
<msg>Tagged as v1.0</msg>
|
||||
</logentry>
|
||||
<logentry
|
||||
revision="1">
|
||||
<author>test</author>
|
||||
<date/>
|
||||
<paths>
|
||||
<path
|
||||
action="A">/a</path>
|
||||
</paths>
|
||||
<msg>Add file a</msg>
|
||||
</logentry>
|
||||
</log>
|
||||
|
Loading…
Reference in New Issue
Block a user