gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] tla undo file


From: Zenaan Harkness
Subject: [Gnu-arch-users] tla undo file
Date: Tue, 02 Nov 2004 16:35:11 +1100

I tla rm'ed a file (actually, I could have rm'ed it, then realised I
forgot tla rm, and so then tla delete'd it).

The wiki has the following procedure:

---
For an undelete that works with all id methods, try 

#find the current tree revision
currev=$(tla logs -f|tail -n1)

#ensure the desired revision is present
tla library-add $currev

#copy the library version of the desired revision
cp $(tla library-file hello.c $currev) .
---

However, here's my bash session, which clearly is not working:

---
$ tla logs -f|tail -n1
address@hidden/cpc--devel--0.2--patch-46
$ #find the current tree revision
$ currev=$(tla logs -f|tail -n1)
$ #ensure the desired revision is present
$ tla library-add $currev
$ echo $currev
address@hidden/cpc--devel--0.2--patch-46
$ tla library-file CPCSessionServices.java $currev
library-file: file not found in library 
(address@hidden/cpc--devel--0.2--patch-46:CPCSessionServices.java)
$ tla my-revision-library
/home/arch/revlib
$ ll 
/home/arch/revlib/address@hidden/cpc/cpc--devel/cpc--devel--0.2/cpc--devel--0.2--patch-46/src/cpc/css/CPCSessionServices.java
-rw-rw-r--  1 zen zen 947 Oct 29 14:37 
/home/arch/revlib/address@hidden/cpc/cpc--devel/cpc--devel--0.2/cpc--devel--0.2--patch-46/src/cpc/css/CPCSessionServices.java

?

Actually, just had an idea:
$ pwd
/home/zen/cpc/tla3/src/cpc/css
$ tla library-file src/cpc/css/CPCSessionServices.java $currev
/home/arch/revlib/address@hidden/cpc/cpc--devel/cpc--devel--0.2/cpc--devel--0.2--patch-46/src/cpc/css/CPCSessionServices.java

Clearly, the filename must be fully qualified, even when I'm in that directory.

In Java, it is very common practice to make effective use
of a hierarchy of "packages"/dirs to divide-and-conquor
large projects.

Another one for the feature list I guess - perhaps Canonical's
Works As Expected(TM) front end.

OK, another one this time (actually, this was the first one I tried):

$ cd ../../..
$ pwd
/home/zen/cpc/tla3
$ tla file-diffs src/cpc/css/CPCSessionServices.java
new file (not present in address@hidden/cpc--devel--0.2--patch-46)

Why does the file-diffs mechanism not work for me in this situation?

And yet tla changes gives the following initial lines:
$ tla changes
* looking for address@hidden/cpc--devel--0.2--patch-46 to compare with
* comparing to address@hidden/cpc--devel--0.2--patch-46
D  src/cpc/css/.arch-ids/CPCSessionServices.java.id
D  src/cpc/css/CPCSessionServices.java

So, if file-diffs doesn't work, will I need to tla add
this file that I copy in?

tia
zen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]