Merge branch 'fc/remote-hg'
authorJunio C Hamano <gitster@pobox.com>
Mon, 22 Apr 2013 01:39:58 +0000 (18:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Apr 2013 01:39:58 +0000 (18:39 -0700)
Updates remote-hg helper (in contrib/).

* fc/remote-hg: (21 commits)
remote-hg: activate graphlog extension for hg_log()
remote-hg: fix bad file paths
remote-hg: document location of stored hg repository
remote-hg: fix bad state issue
remote-hg: add 'insecure' option
remote-hg: add simple mail test
remote-hg: add basic author tests
remote-hg: show more proper errors
remote-hg: force remote push
remote-hg: push to the appropriate branch
remote-hg: update tags globally
remote-hg: update remote bookmarks
remote-hg: refactor export
remote-hg: split bookmark handling
remote-hg: redirect buggy mercurial output
remote-hg: trivial test cleanups
remote-hg: make sure fake bookmarks are updated
remote-hg: fix for files with spaces
remote-hg: properly report errors on bookmark pushes
remote-hg: add missing config variable in doc
...

1  2 
contrib/remote-helpers/git-remote-hg
contrib/remote-helpers/test-hg-hg-git.sh
contrib/remote-helpers/test-hg.sh
Simple merge
Simple merge
index 7bb81f2f8e0e288eb7e392075491fc1df0bd91d1,6a1e4b1ad629c99e6c98786810c8601181cddd6d..d5b873051f5d79e277fb8ed6cfcd0db85f0d429f
@@@ -115,7 -115,43 +115,43 @@@ test_expect_success 'update bookmark' 
    git push
    ) &&
  
 -  hg -R hgrepo bookmarks | grep "devel\s\+3:"
 +  hg -R hgrepo bookmarks | egrep "devel[       ]+3:"
  '
  
+ author_test () {
+   echo $1 >> content &&
+   hg commit -u "$2" -m "add $1" &&
+   echo "$3" >> ../expected
+ }
+ test_expect_success 'authors' '
+   mkdir -p tmp && cd tmp &&
+   test_when_finished "cd .. && rm -rf tmp" &&
+   (
+   hg init hgrepo &&
+   cd hgrepo &&
+   touch content &&
+   hg add content &&
+   author_test alpha "" "H G Wells <wells@example.com>" &&
+   author_test beta "test" "test <unknown>" &&
+   author_test beta "test <test@example.com> (comment)" "test <unknown>" &&
+   author_test gamma "<test@example.com>" "Unknown <test@example.com>" &&
+   author_test delta "name<test@example.com>" "name <test@example.com>" &&
+   author_test epsilon "name <test@example.com" "name <unknown>" &&
+   author_test zeta " test " "test <unknown>" &&
+   author_test eta "test < test@example.com >" "test <test@example.com>" &&
+   author_test theta "test >test@example.com>" "test <unknown>" &&
+   author_test iota "test < test <at> example <dot> com>" "test <unknown>" &&
+   author_test kappa "test@example.com" "test@example.com <unknown>"
+   ) &&
+   git clone "hg::$PWD/hgrepo" gitrepo &&
+   git --git-dir=gitrepo/.git log --reverse --format="%an <%ae>" > actual &&
+   test_cmp expected actual
+ '
  test_done