Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13818

Error when getting commits from an empty mercurial repository

    XMLWordPrintable

Details

    Description

      I want get commits from repository by rest api, make request

      #!bash
      curl https://api.bitbucket.org/2.0/repositories/yorlov/emptyhg/commits
      

      and catch error

      #!json
      {
          "error": {
              "id": "5288ac6da6844dec8378307c75e7d547",
              "message": "[Errno 2] No such file or directory: '/data/c01/n07/p/vp0663/data/d-289/r-23626289/.hg/store/00changelog.i'"
          },
          "type": "error"
      }
      

      I would like it to have the behavior similar to a git repository

      #!bash
      curl https://api.bitbucket.org/2.0/repositories/yorlov/emptygit/commits
      
      #!json
      {
          "pagelen": 30,
          "values": []
      }
      

      Attachments

        Activity

          People

            dtao dtao
            d3a847fc0493 yorlov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: