http://defect.opensolaris.org/bz/show_bug.cgi?id=19221

--- Comment #6 from Vladimir Kotal <[email protected]> 2012-07-10 
09:37:23 UTC ---
(In reply to comment #5)
> Tried to verify it by creating+modifying a
> testdata/sources/bug19221/test:file.txt in a opengrok test repo. History/diffs
> work as expected.

Not sure if you're referring to the state before changeset 1401:4bad063b48d3 or
after.

Anyhow, the problem can be reproduced before the changeset as follows for
Mercurial:

$ mkdir colon-test
$ hg init
$ touch foo:bar
$ hg add foo:bar
$ hg commit -m "first"
$ echo "blah" > foo\:bar 
$ hg commit -m "second"

This results in:

$ hg log -v

changeset:   1:d4dce3491f92
tag:         tip
user:        Vladimir Kotal <[email protected]>
date:        Tue Jul 10 11:32:52 2012 +0200

description:
        second

modified:
   foo:bar


changeset:   0:6293c321ce21
user:        Vladimir Kotal <[email protected]>
date:        Tue Jul 10 11:32:42 2012 +0200

description:
        first

added:
   foo:bar



After that reindex and display the diff as follows:

http://grok-test:8888/source/diff/colon-test/foo%3Abar?r2=%2Fcolon-test%2Ffoo%253Abar%401%3Ad4dce3491f92&r1=%2Fcolon-test%2Ffoo%253Abar%400%3A6293c321ce21

Indeed, it seems that it does not work with my current package version, not
sure what went wrong.

> The only problem encountered is IMHO a browser bug: seem to interpret this
> relative path as an URI with schema 'test', even so there is no ':/'. Anyway,
> that's easy to fix by just prefixing the link with a './' - browsers will
> normalize the URL (checked for FF/Chrome/Safari), i.e. strip './' off in the
> request...

This sounds like a kludge to me.

I will try to investigate different SCM types. Anyhow, I am still very open to
suggestions on how to fix this in the best possible way.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev

Reply via email to