Hello GNU ARCH users!

I am having next ARCH usage schema:

- Each project stored in one "main" archive (repository);
- Each developer has self-owned "local" archive (repository);
- Each developer store work projects tree in ~/PROJ/...
- For operate above project developer must tag it from main to local archive;
    (tla tag [EMAIL PROTECTED]/project... [EMAIL PROTECTED]/project...)
- After some part of work finished, developer must store changes to main archive
    (cd $some_tmp_dir
     tla get [EMAIL PROTECTED]/project...
     cd project...
     tla star-merge [EMAIL PROTECTED]/project...
     tla commit -s "Merge next changes from local archive: ...")
   This operation may cause conflicts, if another developer
   merged similar changes before this developer.
- For avoid possible conflicts in future and automatically sync-up
  local developers archives with main I want to run cron job
  every night. This job must scan /home/*/PROJ directories
  and for each valid arch work tree do:
    cd $finded_dir
    tla star-merge [EMAIL PROTECTED]/project...
    tla changes -q
    if test $? -ne 0; then
      tla commit -s "Automerged from main archive"
      ... send e-mail notify to developer ...
    fi
  As a result in morning developer receive e-mail about
  automerge process and have up-to-dated project in local
  archive. All sounds good!

Only the one problem I see now. For example next situation:
1) Developer merges changes from local to main archive;
   (and arch generate the new patch-log)
2) All another developers don't change this archive;
3) At night cron run job for automerge, and this patch-log
   (as a new changeset) will be merged and commited to
   local archive.
4) Local archive again has changes (last commited patch-log)
   and developer go to point 1)

Is exist right method to handle this situation?
Or may be I am use broken ARCH usage schema?

Thanks in advance!

---
WBR, Popkov Alexander.




_______________________________________________
Gnu-arch-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-arch-users

GNU arch home page:
http://savannah.gnu.org/projects/gnu-arch/
  • ... Попков Александр
    • ... David Allouche
    • ... John Arbash Meinel
    • ... Попков Александр
      • ... David Allouche
    • ... Попков Александр
    • ... John Arbash Meinel
    • ... Попков Александр
      • ... John Arbash Meinel
    • ... Попков Александр
      • ... David Allouche

Reply via email to