git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFCv2 00/12] Foreign VCS helper program for CVS repositories

From
Johan Herland <johan@herland.net>
Date
Jul 31, 2009, 10:00 UTC
Message-ID
<1249034432-31437-1-git-send-email-johan@herland.net>
Hi,

Here is a resend of the jh/vcs-cvs topic in 'pu'. This series is based on the jh/notes topic in current 'pu', but is NOT based on the db/transport-shim topic. As a consequence of this, the series now contains 3 more patches that were part of the original db/foreign-scm topic.

Also, I expect that Barkalow will at some point send an updated db/foreign-scm topic, which will invalidate parts of - or the whole of - this patch series. I expect to rebase and resend this topic when the updated db/foreign-scm appears, but since I am away for the next week, I still send this series now, to reflect the current (unfinished) state.

The 7 first patches are a resend of Barkalow's original foreign-scm topic, or at least enough of it to support the rest of this series.

Next, there are 3 patches tweaking and expanding the foreign-vcs API (with corresponding implementations in the foreign transport code) to adjust for the CVS helper's needs.

The final 2 patches add the git-vcs-cvs helper program that implements the fetch/import of objects from a local or remote CVS repository, along with selftests for verifying its correctness in some simple cases.

Changes since the last iteration:
- Added 3 more patches from the db/foreign-scm topic, caused by rebase.
- The patch with preliminary refactoring in fast-import.c is gone.
- The patch teaching fast-import to import notes has been moved to jh/notes.
- The CVS helper is updated to use the new 'notemodify' fast-import command.
Daniel Barkalow (7):
  Allow late reporting of fetched hashes
  Document details of transport function APIs
  Add option for using a foreign VCS
  Add specification of git-vcs-* helper programs
  Use a function to determine whether a remote is valid
  Allow programs to not depend on remotes having urls
  Add a transport implementation using git-vcs-* helpers
Johan Herland (5):
  Preliminary clarifications to git-vcs documentation
  Teach foreign transport code to perform the "capabilities" command
  Introduce a 'marks <filename>' feature to the foreign transport code
  First draft of CVS importer using the foreign-scm machinery
  Add simple test cases of git-vcs-cvs functionality
 Documentation/config.txt         |    4 +
 Documentation/git-vcs-cvs.txt    |   85 ++++
 Documentation/git-vcs.txt        |   88 ++++
 Makefile                         |   47 ++
 builtin-clone.c                  |    6 +-
 builtin-fetch.c                  |   19 +-
 builtin-ls-remote.c              |    6 +-
 builtin-push.c                   |   54 ++-
 configure.ac                     |    3 +
 git-vcs-cvs.py                   |  697 ++++++++++++++++++++++++++++++
 git_vcs_cvs/.gitignore           |    2 +
 git_vcs_cvs/Makefile             |   27 ++
 git_vcs_cvs/changeset.py         |  114 +++++
 git_vcs_cvs/commit_states.py     |   52 +++
 git_vcs_cvs/cvs.py               |  884 ++++++++++++++++++++++++++++++++++++++
 git_vcs_cvs/cvs_revision_map.py  |  367 ++++++++++++++++
 git_vcs_cvs/cvs_symbol_cache.py  |  283 ++++++++++++
 git_vcs_cvs/git.py               |  591 +++++++++++++++++++++++++
 git_vcs_cvs/setup.py             |   12 +
 git_vcs_cvs/util.py              |  147 +++++++
 remote.c                         |   15 +-
 remote.h                         |    2 +
 t/t9800-foreign-vcs-cvs-basic.sh |  518 ++++++++++++++++++++++
 t/t9801-foreign-vcs-cvs-fetch.sh |  291 +++++++++++++
 t/test-lib.sh                    |    1 +
 transport-foreign.c              |  271 ++++++++++++
 transport.c                      |   24 +-
 transport.h                      |   45 ++-
 28 files changed, 4609 insertions(+), 46 deletions(-)
 create mode 100644 Documentation/git-vcs-cvs.txt
 create mode 100644 Documentation/git-vcs.txt
 create mode 100755 git-vcs-cvs.py
 create mode 100644 git_vcs_cvs/.gitignore
 create mode 100644 git_vcs_cvs/Makefile
 create mode 100644 git_vcs_cvs/__init__.py
 create mode 100644 git_vcs_cvs/changeset.py
 create mode 100644 git_vcs_cvs/commit_states.py
 create mode 100644 git_vcs_cvs/cvs.py
 create mode 100644 git_vcs_cvs/cvs_revision_map.py
 create mode 100644 git_vcs_cvs/cvs_symbol_cache.py
 create mode 100644 git_vcs_cvs/git.py
 create mode 100644 git_vcs_cvs/setup.py
 create mode 100644 git_vcs_cvs/util.py
 create mode 100755 t/t9800-foreign-vcs-cvs-basic.sh
 create mode 100755 t/t9801-foreign-vcs-cvs-fetch.sh
 create mode 100644 transport-foreign.c
Have fun! :)
...Johan
Next: Johan Herland
Message 1 of 12 in “[RFCv2 00/12] Foreign VCS helper program for CVS repositories”
  1. Johan HerlandJul 31, 2009
  2. 01/12 Allow late reporting of fetched hashesJohan Herland, Jul 31, 2009
  3. 02/12 Document details of transport function APIsJohan Herland, Jul 31, 2009
  4. 03/12 Add option for using a foreign VCSJohan Herland, Jul 31, 2009
  5. 04/12 Add specification of git-vcs-* helper programsJohan Herland, Jul 31, 2009
  6. 05/12 Use a function to determine whether a remote is validJohan Herland, Jul 31, 2009
  7. 06/12 Allow programs to not depend on remotes having urlsJohan Herland, Jul 31, 2009
  8. 07/12 Add a transport implementation using git-vcs-* helpersJohan Herland, Jul 31, 2009
  9. 08/12 Preliminary clarifications to git-vcs documentationJohan Herland, Jul 31, 2009
  10. 09/12 Teach foreign transport code to perform the "capabilities" commandJohan Herland, Jul 31, 2009
  11. 10/12 Introduce a 'marks <filename>' feature to the foreign transport codeJohan Herland, Jul 31, 2009
  12. 12/12 Add simple test cases of git-vcs-cvs functionalityJohan Herland, Jul 31, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.