How can I make a link to a git changeset in Trac when there is more than one repository and neither one is default?

While working with just one associated repository, I was quite used to reference changesets in my Trac tickets using the changeset keyword and the commit’s SHA1 hash like this:

[changeset:af54b6d]

which would give me an hyperlink to the corresponding changeset.

  • How to compare sets of changesets between 2 Mercurial branches?
  • What happens to original changesets after an Hg “history rewrite” (histedit, commit --amend), and how can they be recovered?
  • What is the meaning of an asterisk appended to a TFS changeset number
  • What is a changelist in IntellJ IDEA ? A list of changes compared to what? An accurate explation is sought for
  • How can I extract all changed files of a changeset in Mercurial?
  • Now I’m working on a project where the same Trac environment (version 0.12) has multiple git repositories associated with it and no one is – and shouldn’t be – the default, so the above syntax doesn’t work anymore.

    Can anyone please help me figuring out how to refer to a changeset in a specific repository?

    Thank you!

  • How to setup and clone a remote git repo on Windows?
  • I am getting 500 error on git clone
  • make Git repository global writable
  • Git Revert Not Working
  • Git delete branch without cloning?
  • Will too many tags cause any issues in Git?
  • 2 Solutions collect form web for “How can I make a link to a git changeset in Trac when there is more than one repository and neither one is default?”

    If your repository is named repo, you can link to the changeset with [changeset:af54b6d/repo].

    I am using subversion, but asuming git changeset links work the sam way, you should use repo:changeset:af54b6d, where you must define repo in the [intertrac] section of the trac.ini. See also InterTrac

    Git Baby is a git and github fan, let's start git clone.