[referencer] Update algorithm when moving the reflib file...

Michael R. Head burner at suppressingfire.org
Mon Apr 30 00:04:58 EDT 2007


On Tue, 2007-04-17 at 11:35 +0100, John Spray wrote:
> On Sun, 2007-04-15 at 14:48 -0400, Michael R. Head wrote:b
> > When the reflib file moves, the algorithm seems to be this:
> >      1. Check if the file exists at the full path
> >      2. If it is, compare the full path and the current reflib location
> >      3. If they differ toss the relative location and use the full path
> > 
> > It does this even if the relative filename also refers to the file. I
> > guess that for my situation, the relative location should be preferred.
> 
> I'm not sure I completely understand the problem.  Is the original
> relative path is getting lost?  This shouldn't be happening if the
> document file still exists in a subfolder of where the reflib file is.

Hi, yeah, that's what's happening. Here's the sequence of operations
leading to this result:

1) create folder Papers/conference-2006/References
2) put pdfs in that folder and use Referencer to create a .reflib file
in that directory
3) cp -r Papers/conference-2006 Papers/conference-2007
4) open Papers/conference-2007/References/refs.reflib
5) add some new entries and save the result
6) examine the .reflib file and note that the relative paths to the
files are gone and absolute paths point to the copies
Papers/conference-2006/References, rather than in *-2007/*

Here are two revisions of the file found in CVS 1.2 is the one that
Referencer saved after I opened the copied file (version 1.1.1.1).
http://firefighter.cs.binghamton.edu/cgi-bin/viewcvs.cgi/parallelxml-grid-2007/References/references.reflib?rev=1.2&view=markup
http://firefighter.cs.binghamton.edu/cgi-bin/viewcvs.cgi/parallelxml-grid-2007/References/references.reflib?rev=1.1.1.1&view=markup

After tweaking things a bit (re-copying the reflib file over and moving
the old parallelxml-hpdc-socp-2007 folder out of the way, opening the
reflib file and saving it), here's what I got, which is what I wanted
Referencer to do in the first place:
http://firefighter.cs.binghamton.edu/cgi-bin/viewcvs.cgi/parallelxml-grid-2007/References/references.reflib?rev=1.3&view=markup


> John
> 
-- 
Michael R. Head <burner at suppressingfire.org>
http://www.suppressingfire.org/~burner/
http://suppressingfire.livejournal.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3189 bytes
Desc: not available
URL: <http://icculus.org/pipermail/referencer/attachments/20070430/3a7f1519/attachment.bin>


More information about the referencer mailing list