git hash to svn number generation scheme

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 06:14:55

问题


Recently I have find out that TortoiseSVN (surprise, surprise) supports git. So you can just checkout git repository using TortoiseSVN, and even to reference external git repositories. On internet there exists huge amount of questions & threads on how to get good numbering scheme from git hash, which is found many times as too cryptic and difficult to use.

For example: How to get the git commit count?.

By following this link: Is there a git-svn windows client something like TortoiseSVN?, I find out that git support was wired under svn long time ago:

  • Announcing SVN Support
  • Improved Subversion Client Support

Can you tell me what kind of scheme TortoiseSVN uses to display svn numbers?

  • Are those numbers unique if commit is done from git ?
  • Are those numbers unique if commit is done from TortoiseSvn ?

What kind of scheme TortoiseSVN uses to map git hash to svn revision number ?


回答1:


TortoiseSVN does not support Git.

I guess that you tried GitHub repositories with TortoiseSVN. Yes, it works in general and should also work with any other SVN client. GitHub allows SVN clients perform simple operations with its repositories through a special transparent proxy (I may be wrong, but that's what I read). So it is not TortoiseSVN that uses a special mapping schema, it's GitHub that reports Git revisions to SVN client in a form that the client can digest. :)

There is another Tortoise* client -- TortoiseGit. It takes Windows Shell integration idea and tries to map it to Git commands.



来源:https://stackoverflow.com/questions/46429834/git-hash-to-svn-number-generation-scheme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!