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

 
 

bug #17626: tla update deletes directories and files

Submitter:  Alan Grover <awgrover>
Submitted:  Wed 06 Sep 2006 01:37:22 PM UTC
Votes: 1
 
Category:  tla Severity:  3 - Normal
Item Group:  bug Status:  None
Privacy:  Public Open/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:  atai
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There is 1 vote so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2008-07-09 None Attached File- Added feed_rss20_80x15_2.png, #16080
2007-03-01 jfalk Carbon-Copy- Added -email is unavailable-
2007-03-01 jfalk Carbon-Copy- Added jfalk
2006-09-23 atai Assigned toNone atai

Back to the top

Powered by Savane 3.14-0608.
Corresponding source code