SVN: How to get the first revision of a file?

后端 未结 4 1739
我寻月下人不归
我寻月下人不归 2020-12-25 11:42

When working with a subdirectory in a repository, how to find the revision when that specific directory has been added to the repository? By using \"svn info http://..\" I c

相关标签:
4条回答
  • 2020-12-25 12:03

    Not sure what the command line method is. I use Tortoise on windows to do most of my SVN navigating. If you have that tool, just right click on the folder and it is tortoise SVN/Show Log.

    0 讨论(0)
  • 2020-12-25 12:25

    The last entry of

    svn log http://...
    
    0 讨论(0)
  • 2020-12-25 12:25

    For someone trying to do this in pysvn:

    def get_branch_creation_rev(url)
        import pysvn
        cl = pysvn.Client()
        return  pysvn.Revision(pysvn.opt_revision_kind.number,
                               cl.log(url)[-1].data.get('revision').number)
    
    0 讨论(0)
  • 2020-12-25 12:29

    You could use svn log, with a reverse revision range:

    svn log -r 1:HEAD --limit 1 <REPO_URL>
    
    0 讨论(0)
提交回复
热议问题