Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I link in a repository's wiki to a page in the source of the latest commit?

Corey Skiffington March 28, 2013

How can I link in a repository's wiki to a page in the source of the latest commit of a branch without having to update the link every time there is a new commit?

I'm not uploading commits from local every time right now because it's easier to just drag the new .dll's into dropbox where the link is static as long as the filename stays the same. Is there a static path to the latest commit page of the source for a repository?

1 answer

1 accepted

1 vote
Answer accepted
rverschoor
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2013
Corey Skiffington March 28, 2013

Not really I already know how to create wiki pages and add links. The problem I have is that every time I do a commit the link to the page in the list of source files for a repository changes with a new long hashcode in the middle of it. So on a project where I do 100-200 changes a day it's impractical to have a link to a page in the sourcecode at all at the moment because it would kill my productivity to update it after every commit. I didn't know if there was something equivalent to "hxxxxxxxbitbucket.org/myteam/myrepository/src/%latestcommit%/foo/bin/release/?at=development

rverschoor
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2013

As mentioned on that page:

By default, if you do not specify the revision, the link will point to 'tip'.

which is exactly what you want.

Corey Skiffington March 28, 2013

ALMOST :) The file is in another repository. Oh DERP! Thanks for your help! just realized I can put the download page in the wiki for that repository and link to he page. *facepalm*

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events