tests/test-convert-git.t
changeset 25905 80149d0b6842
parent 25787 d9133e89d39d
child 25998 a7527c5769bb
equal deleted inserted replaced
25904:fbaa2de13cf6 25905:80149d0b6842
   664   updating bookmarks
   664   updating bookmarks
   665   $ hg -R hg-repo7 bookmarks
   665   $ hg -R hg-repo7 bookmarks
   666      master                    0:03bf38caa4c6
   666      master                    0:03bf38caa4c6
   667      origin/master             0:03bf38caa4c6
   667      origin/master             0:03bf38caa4c6
   668 
   668 
       
   669 Run convert when the remote branches have changed
       
   670 (there was an old bug where the local convert read branches from the server)
       
   671 
       
   672   $ cd git-repo7
       
   673   $ echo a >> a
       
   674   $ git commit -am "move master forward"
       
   675   [master 0c81947] move master forward
       
   676    Author: nottest <test@example.org>
       
   677    1 file changed, 1 insertion(+)
       
   678   $ cd ..
       
   679   $ rm -rf hg-repo7
       
   680   $ hg convert --config convert.git.remoteprefix=origin git-repo7-client hg-repo7
       
   681   initializing destination hg-repo7 repository
       
   682   scanning source...
       
   683   sorting...
       
   684   converting...
       
   685   0 commit a
       
   686   updating bookmarks
       
   687   $ hg -R hg-repo7 bookmarks
       
   688      master                    0:03bf38caa4c6
       
   689      origin/master             0:03bf38caa4c6
       
   690 
   669 damaged git repository tests:
   691 damaged git repository tests:
   670 In case the hard-coded hashes change, the following commands can be used to
   692 In case the hard-coded hashes change, the following commands can be used to
   671 list the hashes and their corresponding types in the repository:
   693 list the hashes and their corresponding types in the repository:
   672 cd git-repo4/.git/objects
   694 cd git-repo4/.git/objects
   673 find . -type f | cut -c 3- | sed 's_/__' | xargs -n 1 -t git cat-file -t
   695 find . -type f | cut -c 3- | sed 's_/__' | xargs -n 1 -t git cat-file -t