bugGNU arch -- a revision control system - Bugs: bug #6759, partial commit fails if file lacks...

 
 

bug #6759: partial commit fails if file lacks tag (tagline)

Submitter:  Invalid User ID <#21494>
Submitted:  Tue 25 Nov 2003 01:36:58 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Open/Closed:  Open
Release: 
Fixed Release: 
Merge Request?:  None
Your Archive Name: 
Your Archive Location: 
Assigned to:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Sat 10 Jan 2004 12:16:53 AM UTC, comment #3: 

I suppose it will work if you are positioned in the project tree root and specify "./450.inc" instead of "450.inc" (perhaps with some sub-directory parts in the name, depending on your case).

arch_inventory_id returns, in case of an untagged source file, just "?" prepended to the name of the specified file. It then compares this id to the one in the original index, i.e. it compares ?450.inc to ?./450.inc, which doesn't match (the untagged ids in the indices are generated relative to the project tree root and have a ./ prepended).

Commit will also fail if you are in a project subdirectory and specify a filename within that directory behind the "--", because there is (e.g.) no ?foo, but only an original ?./subdir/foo.

Perhaps arch_inventory_id needs a similar mechanism as coded in cmd-file-diffs.c: The name of the specified file gets translated into a name relative to the tree root first, depending on cwd.

Bug report #7023 seems to correspond to this one.

Mr. Nobody <gnubert>
Tue 25 Nov 2003 10:44:01 PM UTC, comment #2: 

I'm sorry. Just pretend my last comment wasn't there. I should have read the docs, of course.

Invalid User ID <#25838>
Tue 25 Nov 2003 10:34:51 PM UTC, comment #1: 

My problem is very similar, but in my case the file reported missing is not that which sorts first, but the first file named on the command line. There are tag lines everywhere and tree-lint is happy.

I've noticed that only new ('A') files provoke the error. There is really no chance of finding an added file in the original tree, I think.

A full commit works fine, of course.

Invalid User ID <#25838>
Tue 25 Nov 2003 01:36:58 PM UTC, original submission:  

There seem to be a problem doing partial commits. My scenario is this:
 - tagline tagging method
 - source has both tagged and untagged files

If I try to do a partial commit and one of the files does not have a tag the commit will fail, giving this error message:

make-changeset-files: file missing from ORIG tree (450.inc)

The filename listed (450.inc) is the first file of the two I tried to commit (the one that sorts first).


Invalid User ID <#21494>

 

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 are 0 votes 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.

 

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

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16-a7ba.
Corresponding source code