Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

See revision history of deleted file

Hi,

I've recently done a commit which has deleted a file. What I would like to do is view the revision history of the file that was deleted. Is this possible?
When I try to click on the deleted file I am not able to and it doesn't show up in the folder anymore.

http://i.prntscr.com/08tFCCWpRhmOpWlonds4cA.png


Thanks

3 answers

Ana's answer is kinda right, but has sequence problems.  

To find the revision history of a file that was already deleted ...

  1. Find a Commit or Pull Request in which the file of interest was either added or changed, not deleted.  (I don't have a solid answer for how to do that.  In my case, my files usually include messages naming Jira tickets under which changes were made, so I can look at the Merges associated with those Jira tickets.)
  2. In the Files Changed list, click the file's hyperlink to navigate to the header of the file's change detail.
  3. In the right side of that header, click the 'View File' button to open the file details page for that file.
  4. On that file details page, click the 'Source' drop down button and select 'History'.

There is a problem with your answer: there is no `View File` button on the right side of the header, not even anywhere on the Files Changed page.

Like jakept likes this

You're right, Loud.  I need to refine "Find a Commit or Pull Request that involved the file" to "Find a Commit or Pull Request in which the file of interest was either added or changed, not deleted."

If you're having a hard time finding an old version where that particular file was edited, create a new file with the same name and commit it. You then have the file in your history to click on.

Like Aidan McMillan likes this

As the other answers say, you'll need to find a version where the file was added or edited. Then click to view its history (right-click, choose Log selected, window with info opens but may not be active window - open from taskbar.)

If you have a lot of versions, then it can be a real pain to go through the old versions to find a version where that particular file was changed. 

A trick:

What I did  was to create a new empty file with the same name. Then commit. I now had the file to click on.

0 votes
Ana Retamal Atlassian Team Jul 23, 2018

Hi Kosta, to find the revision history if a file that was already deleted, you'll need to use a commit where the file still existed. Go to Source, find a commit where the file exists and in the dropdown select 'History':

Screen Shot 2018-07-23 at 14.01.02.png

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

505 views 6 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you