[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: reading wc-ng to find the checksum name of pristine file

From: Yasuhito FUTATSUKI <futatuki_at_yf.bsdclub.org>
Date: Thu, 31 Dec 2020 10:54:55 +0900

Hello,

On 2020/12/31 8:51, Zimmerman, Curtis J. (MSFC-EV42) wrote:
> I am doing a manual diff3 merge with a file in a checked out subversion repo - merging with a file not in svn. This is part of our gatekeeper process - a file is sent to a non-svn holding area to merge before commit.
>
> Here's the basic idea:
>
> filea.cpp (orig), in a subversion 1.7 repo, it is in .svn/pristine/hexcode/checksum.svn-base (oldest version of the file)
>
> filea.cpp (mine), user modified version of filea.cpp (my copy - which has updates to the original)
>
> filea.cpp (theirs), another users version of filea.cpp which is not in a subversion repo (someone else's copy - also derived from the original)
>
> to perform a manual merge, I need to have a copy of the original
>
> diff3 -A -m filea.cpp(mine) filea.cpp(orig) filea.cpp(theirs) > filea.cpp(merged)
>
> In subversion 1.6, I found the path to the original file under .svn/text-base/filea.cpp.svn-base
>
> But with version 1.7 and wc-ng, finding the pristine file is more complicated. Do I have to learn how to read wc-ng? Or is there any easier way?

How about using "svn export -rBASE filea.cpp some_safer_path"
to obtain filea.cpp (orig)?

Cheers,

-- 
Yasuhito FUTATSUKI <futatuki_at_yf.bsclub.org>
Received on 2020-12-31 03:08:56 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.