bugGNU arch -- a revision control system - Bugs: bug #17626, tla update deletes directories and...

 
 

bug #17626: tla update deletes directories and files

Submitted by:  Alan Grover <awgrover>
Submitted on:  Wed 06 Sep 2006 01:37:22 PM UTC  
Votes:  1  
 
Category: tlaSeverity: 3 - Normal
Item Group: bugStatus: None
Privacy: PublicOpen/Closed: Open
Release: 1.3.5 tla--atai--1.3--patch-72,
Fixed Release: 
Merge Request?: None
Your Archive Name: 
Your Archive Location: 
Assigned to: Andy Tai <atai>

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 06 Sep 2006 01:37:22 PM UTC, original submission:

"tla update" will delete directories (and files) if they have been added, but not yet committed. Even worse, apparently a directory will be deleted if it contains even one un-added file. A work-around is to use "tla star-merge" or "tla replay."

Colin Fox gives this recipe:
1. Create a directory in an already arch-controlled tree
2. tla add the dir
3. Put a file in to the dir, without an arch-tag.
4. Do a "tla update", updating your tree from someone else's changes
5. tla actually DELETES the directory, rather than just moving it off to a safe place.
---
Matthieu Moy explains it as:
update does roughly

undo
replay (or apply-delta)
redo

You'd probably get the same behavior with

$ tla undo && tla redo

undo means compute the changeset, and apply it in reverse to the local tree. The changeset will say "this directory has been added". So, the reversed changeset will say "this directory has to be deleted". In this case, I believe tla does "rm -fr" on the directory.
---

See the short discussion at http://www.nabble.com/TLA-Replay-nastiness-t522947.html

That discussion notes "That's a known issue (Aaron reported this a while ago), but it seems that none of baz and tla fixed it." But, I did not find a bug listed.

Alan Grover <awgrover>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 1 encouragement so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 09 Jul 2008 07:36:20 AM UTCNoneAttached File-=>Added feed_rss20_80x15_2.png, #16080
Thu 01 Mar 2007 12:25:28 PM UTCjfalkCarbon-Copy-=>Added -unavailable-
Thu 01 Mar 2007 12:24:26 PM UTCjfalkCarbon-Copy-=>Added jfalk
Sat 23 Sep 2006 12:00:12 AM UTCataiAssigned toNone=>atai

Back to the top


Powered by Savane 3.1-cleanup