On Thu, 18 Mar 2004 13:32:50 +1100
Benno <[EMAIL PROTECTED]> wrote:
> Sorry this is probably a dumb question, but what is the
> "arch way" of reverting a file back to its latest copy.
>
> In cvs I do:
>
> rm foo; cvs up foo
I would have sent this earlier, but the following script was too raw for
general consumption at that time. However, it has now been extensively
reworked and I'm reasonably confident that it behaves correctly.
Basically, the idea is to install mgdiff (apt-get), copy the
tla-mgdiff-1.00.py script into a directory in your path and then
cd into an Arch working directory and run
tla-mgdiff-1.00.py
Since this is the first release of this script, it might be prudent
to do "tla changes --diffs >~/savethis.diff" before running it.
I'd be very interested in getting some feedback on this before
announcing it on the Gnu-Arch mailing list and trying to push it
into the Debian mgdiff package.
Cheers,
Erik
----------------------------------------------------------------------
http://www.mega-nerd.com/tmp/tla-mgdiff-1.00.py
The program mgdiff (M for Motif) is a graphical diff program which
can display the differences between two versions of a file, pick
changes and store the merged file. For Debian users:
apt-get install mgdiff
tla-mgdiff is a python script (approx 250 lines) which uses mgdiff to
display the differences between the files in the current directory
(an Arch working directory) and its parent in the Arch repository.
tla-mgdiff is ideal for reviewing changes before doing a "tla commit"
but is also extremely handy for selectively backing out changes made
in the current work area.
tla-mgdiff was inspired by the cvsmgdiff and rmgdiff scripts distributed
with the Debian version of mgdiff and I will endeavour to get this
script added to the mgdiff package in Debian.
----------------------------------------------------------------------
--
+-----------------------------------------------------------+
Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid)
+-----------------------------------------------------------+
"Compiling C code with warnings switched off is like practicing
high wire trapeze without a safety net. Even experienced
practitioners try to avoid it." -- me
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html