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 Priority:  5 - Normal
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

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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 ... ness-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>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

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.16-8b18.
Corresponding source code