Mercurial > hg > hg-git
view tests/test-hg-tags-invalid.t @ 841:edcdb7620f4d
git_handler.get_files_changed: return detected renames
We currently return an empty dictionary -- we'll fill it in upcoming patches.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 02 Dec 2014 15:04:50 -0800 |
parents | 2d8037666f4e |
children | fffe8883960b |
line wrap: on
line source
Load commonly used test logic $ . "$TESTDIR/testutil" $ git init gitrepo Initialized empty Git repository in $TESTTMP/gitrepo/.git/ $ cd gitrepo $ echo alpha > alpha $ git add alpha $ fn_git_commit -m "add alpha" $ git checkout -b not-master Switched to a new branch 'not-master' $ cd .. $ hg clone gitrepo hgrepo | grep -v '^updating' importing git objects into hg 1 files updated, 0 files merged, 0 files removed, 0 files unresolved $ cd hgrepo $ hg co master | egrep -v '^\(activating bookmark master\)$' 0 files updated, 0 files merged, 0 files removed, 0 files unresolved $ fn_hg_tag alph#a $ fn_hg_tag bet*a $ fn_hg_tag 'gamm a' $ hg push pushing to $TESTTMP/gitrepo Skipping export of tag bet*a because it has invalid name as a git refname. searching for changes adding objects added 3 commits with 3 trees and 3 blobs updating reference refs/heads/master adding reference refs/tags/alph#a adding reference refs/tags/gamm_a $ hg log --graph | egrep -v ': *(not-master|master)' @ changeset: 3:33a29389ddad | tag: default/master | tag: tip | user: test | date: Mon Jan 01 00:00:13 2007 +0000 | summary: Added tag gamm a for changeset e72bdd9ef5c0 | o changeset: 2:e72bdd9ef5c0 | tag: gamm a | user: test | date: Mon Jan 01 00:00:12 2007 +0000 | summary: Added tag bet*a for changeset 432ce25d86bc | o changeset: 1:432ce25d86bc | tag: bet*a | user: test | date: Mon Jan 01 00:00:11 2007 +0000 | summary: Added tag alph#a for changeset 3442585be8a6 | o changeset: 0:3442585be8a6 tag: alph#a tag: default/not-master user: test <test@example.org> date: Mon Jan 01 00:00:10 2007 +0000 summary: add alpha $ cd .. $ cd gitrepo git should have only the valid tag alph#a but have full commit log including the missing invalid bet*a tag commit $ git tag -l alph#a gamm_a $ cd .. $ hg clone gitrepo hgrepo2 | grep -v '^updating' importing git objects into hg 2 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg -R hgrepo2 log --graph | egrep -v ': *(not-master|master)' @ changeset: 3:33a29389ddad | tag: default/master | tag: tip | user: test | date: Mon Jan 01 00:00:13 2007 +0000 | summary: Added tag gamm a for changeset e72bdd9ef5c0 | o changeset: 2:e72bdd9ef5c0 | tag: gamm a | tag: gamm_a | user: test | date: Mon Jan 01 00:00:12 2007 +0000 | summary: Added tag bet*a for changeset 432ce25d86bc | o changeset: 1:432ce25d86bc | tag: bet*a | user: test | date: Mon Jan 01 00:00:11 2007 +0000 | summary: Added tag alph#a for changeset 3442585be8a6 | o changeset: 0:3442585be8a6 tag: alph#a tag: default/not-master user: test <test@example.org> date: Mon Jan 01 00:00:10 2007 +0000 summary: add alpha the tag should be in .hgtags $ cat hgrepo2/.hgtags 3442585be8a60c6cd476bbc4e45755339f2a23ef alph#a 432ce25d86bc4281747aa42e27b473b992e2b0b9 bet*a e72bdd9ef5c0d6c50022480ee74cd9e48ae74e19 gamm a