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

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

[Gnu-arch-users] [PATCH] my-project-id


From: Russell
Subject: [Gnu-arch-users] [PATCH] my-project-id
Date: Thu, 22 Apr 2004 09:10:48 +0800
User-agent: Mutt/1.5.4i

Hi,

While working on a couple of different projects on the one machine, I
found myself changing my-id between commits to different archives,
mainly to separate my work from my private projects, which I think
really should have different ids.

I thought that there should be a way to specify an id on a per-project
basis, so that the user's project id would be used if it existed, but
otherwise the user's "global" id from ~/.arch-params/=id would be used.

Here's a patch to implement that.  It does these things:

- Adds a new tla command, my-project-id.  'tla my-project-id' prints the
  id found in {arch}/++id, and 'tla my-project-id "A <address@hidden>"' sets it.

- Modifies arch_my_id() to return the project id if it exists, or the
  global id otherwise.  I believe that all parts of the code that
  require an id (the explicit tagging method, for example) will end up
  here.

- Adds a flag to init-tree, --id, which takes an arch id as argument,
  and sets the project id for the new project.

- Adds a test to test-import.sh to test both init-tree --id and
  my-project-id.

The project id file is called ++id to ensure that it does not get
committed, because this is obviously local to one developer and should
not be in the archive.

You can find the patch at

  address@hidden/tla--devo--1.3--patch-1
  http://adelie.cx/archives/address@hidden/

address@hidden/tla--devo--1.3--base-0 was tagged from
address@hidden/tla--devo--1.3--patch-1.

I guess this is where someone tells me that there is a really easy way
to do this already.  :)



[Aside: the process of producing things like this is made exceptionally
painless by tla itself, and also by config-manager, which makes building
different trees for comparison very easy.  Fantastic work by all
involved.]




-- 
Russell Steicke

-- Fortune says:
Avoid reality at all costs.




reply via email to

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