mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-03-19 00:10:13 +01:00
test: pushing a bookmark without changesets
This works in recent versions of Mercurial. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
committed by
Felipe Contreras
parent
153a216f47
commit
d1544e2ccd
25
test/main.t
25
test/main.t
@@ -853,6 +853,31 @@ test_expect_failure 'push updates notes' '
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
test_expect_success 'push bookmark without changesets' '
|
||||
test_when_finished "rm -rf hgrepo gitrepo" &&
|
||||
|
||||
(
|
||||
hg init hgrepo &&
|
||||
cd hgrepo &&
|
||||
echo one > content &&
|
||||
hg add content &&
|
||||
hg commit -m one
|
||||
) &&
|
||||
|
||||
git clone "hg::hgrepo" gitrepo &&
|
||||
|
||||
(
|
||||
cd gitrepo &&
|
||||
echo two > content &&
|
||||
git commit -a -m two &&
|
||||
git push origin master &&
|
||||
git branch feature-a &&
|
||||
git push origin feature-a
|
||||
) &&
|
||||
|
||||
check_bookmark hgrepo feature-a two
|
||||
'
|
||||
|
||||
test_expect_unstable 'pull tags' '
|
||||
test_when_finished "rm -rf hgrepo gitrepo" &&
|
||||
|
||||
|
||||
Reference in New Issue
Block a user