On Mon, Dec 6, 2010 at 6:56 PM, Robert Bradshaw
<rober...@math.washington.edu> wrote:
> On Mon, Dec 6, 2010 at 4:08 AM, Jason Grout <jason-s...@creativetrax.com> 
> wrote:
>> On 12/6/10 5:49 AM, John Cremona wrote:
>>>
>>> We want to give a URL for some Sage library source code, for example:
>>>
>>>
>>> http://hg.sagemath.org/sage-main/file/120c07be6358/sage/modular/cusps_nf.py
>>>
>>> but this link is specific to version 4.6 and so will (presumably)
>>> change for future releases.  Is there any way we can refer to this
>>> file using a URL which will not change (or at least not for several
>>> weeks)
>>
>>
>> According to http://mercurial.selenic.com/wiki/FAQ/WebInterface (first
>> question), just replace the changeset id with "tip":
>>
>> http://hg.sagemath.org/sage-main/file/tip/sage/modular/cusps_nf.py
>
> Well, the contents of this URL will change as Sage evolves. The one
> with the changeset id should be valid as long as the hg servers are up
> (it's a snapshot). One can also link to code from a specific release
> (technically, tag), e.g.
> http://hg.sagemath.org/sage-main/file/4.6/sage/modular/cusps_nf.py

I think that is the best solution.  This is not for a journal
publication, but for a thesis about to be submitted so it only has to
be valid for a month or two!

John


>
> - Robert
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to 
> sage-devel+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to