Repository strip operations may fail if the changsets being removed have comments from a Pull Request or a line-comment (BB-6715)

Marcus Bertrand avatarMarcus Bertrand created an issue

If a user has made a comment on a changeset on a pull request or directly on a line comment, a strip operation may fail. In this case, support can help strip the changeset, but the user will no longer have any access to the comments or pull requests that the changeset was present on.

Comments (11)

  1. Marcus Bertrand

    In all cases such as this, please report the strip request directly to support.atlassian.com under the Bitbucket project and support will strip the changeset(s) for you.

  2. vadmium

    I also recently had an issue stripping changesets, although slightly different to what is described here. The repository was at https://bitbucket.org/vadmium/pyrescene, however I have since deleted and re-forked this repository, and moved on. Background in case it is any use:

    • Originally had at least two heads, using test and py3 bookmarks to distinguish them
    • Created pull request for the test bookmark at https://bitbucket.org/Gfy/pyrescene/pull-request/4
    • Pushed a third head to repository, replacing test, intending push this to the pull request
    • Successfully stripped the out-of-date changes and head referenced by the original test bookmark
    • Saw that the pull request wouldn’t list any revisions after hitting the Edit button
    • Tried to strip changesets from the py3 head. I even tried removing the py3 bookmark and stripping the single changeset from the tip of the head, which was not part of any pull request and did not have any comments.
    • In all cases, the strip page indicated success, but the next page I would load had a message near the top saying the strip had failed, and the changesets were indeed still there
  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.