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

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

Re: [Gnu-arch-users] Setting tree revision for imported sources


From: Miles Bader
Subject: Re: [Gnu-arch-users] Setting tree revision for imported sources
Date: Mon, 9 Feb 2004 20:29:18 -0500
User-agent: Mutt/1.3.28i

On Tue, Feb 10, 2004 at 01:14:23AM +0100, Jacob Gorm Hansen wrote:
> Whenever a new tarball is released I want to do the following:
> 
> 1) unpack the tarball
> 2) populate the untarred directory with {arch} and .arch-ids.
> 3) view all the changes since my last version of the project with 'tla
> changes'
> 4) commit these changes to arch
> 5) rm -rf the unpacked directory, and the tarball
> 
> If I combine tla init-tree and tla sync-tree I get strange results, it
> seems all the id-files are missing.

I see...

There are a bunch of variations on the theme, but it seems like you could:

  (1) do `tla get' of the branch (or use an existing dir from last time, and
      just make sure it's up to day)

  (2) Remove all the sources, but not the .id files,  with something like:

        tla inventory -s | xargs rm

  (3) Unpack the new vendor tarball

  (4) Update the (old) .id files to reflect any source changes.

  (5) Do tla the stuff you want, tla changes, commit, etc.

Step (4) is the most annoying; you can use my `tla-update-ids' script [1] to
do most of the work, but it doesn't handle some hairy cases like renamed
directories.[2]

A variant of the above is to use two vendor trees, the last one you imported
and the new one, and generate a patch which you apply to the arch tree (and
then do steps (4) and (5) like above).

[1] In address@hidden/tla-tools--devo--0

[2] However if you're _really_ using bk, and it does directory renaming
    `properly' (by actually renaming the directory), then this case might work
    anyway.

-Miles
-- 
Would you like fries with that?




reply via email to

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