From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] replica
Date: Tue, 30 Jul 2002 08:15:52 -0400 [thread overview]
Message-ID: <d4da5bbee21b686f12d8120c5ba6ef1d@plan9.bell-labs.com> (raw)
> When I have some local change to a file, replica reports it without telling me
> what was changed in the replica server. Sometime, I want to know what was
> changed at Labs, because I have no such solid confidence to myself in many
> case. ;_;
>
> May I ask you to put the changed file of the replica server to my local disk
> with modifying the name, say such kenji.c to kenji.c.p9bell?
i really don't want to start copying random files
around when there are conflicts.
i don't care about most of them and don't want to spend the time
downloading.
you could use this script though.
g% cat /bin/updiff
#!/bin/rc
rfork e
path = (/bin/)
d = /n/sources/plan9
if(! test -e $d) 9fs sources
for(i in $*){
echo '=====' $i '====='
ls -lmd $i
switch($i){
case /*
diff -n $d/$i $i
case *
i = `{cleanname -d `{pwd} $i}
diff -n $d/$i $i
}
}
g% cd /sys/src/cmd
g% updiff tar.c
===== tar.c =====
[] --rw-rw-r-- M 8 glenda sys 12030 Feb 28 15:04 tar.c
/n/sources/plan9//sys/src/cmd/tar.c:268,269 c /sys/src/cmd/tar.c:268
< /* the mode test is ugly but sometimes necessary */
< if (dblock.dbuf.linkflag == '5' || (sp->mode&0170000) == 040000) {
---
> if(dblock.dbuf.linkflag == '5')
/n/sources/plan9//sys/src/cmd/tar.c:271,272 d /sys/src/cmd/tar.c:269
< sp->mode |= DMDIR;
< }
g%
next reply other threads:[~2002-07-30 12:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-30 12:15 Russ Cox [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-25 2:30 Richard Bilson
2006-08-25 3:38 ` Lyndon Nerenberg
2006-08-25 4:08 ` geoff
2006-08-25 8:19 ` Martin Neubauer
2006-08-27 23:23 ` geoff
2006-08-28 2:46 ` Richard Bilson
2005-02-12 13:42 Sergey Reva
2005-02-12 16:15 ` Russ Cox
2004-03-24 13:20 David Presotto
2002-07-04 10:20 Fco.J.Ballesteros
2002-07-04 10:16 okamoto
2002-07-04 9:26 Fco.J.Ballesteros
2002-07-04 9:21 okamoto
2002-05-29 16:32 Russ Cox
2002-05-29 9:43 forsyth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d4da5bbee21b686f12d8120c5ba6ef1d@plan9.bell-labs.com \
--to=rsc@plan9.bell-labs.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).