Incremental import of git into darcs
Project description
git-darcs - Incremental import of git into darcs
Just call git-darcs
, it will import the history from the first commit.
It will remember (checkpoint) the last imported commit. If you call git-darcs
again it will import from the last checkpoint.
It will import a linearized version if the history, some patches might differ from the original git-commit.
The tool intentionally very minimal, it is for devs. They can read tracebacks or change the code to fit better.
Use a global gitignore
to ignore _darcs
in all your repostiories.
If you don't need any history, so you can import git-darcs --base main^
and
then only track new changes from upstream.
For darcs beginners
- You have to read the darcs book, you just have to
_darcs/pref/boring
is the equivalent of.gitignore
, but has quite a wide definition of boring by default
Darcs does not handle chmod
or symbolic-links. The easiest way to workaround
this, is letting git
do the work. I have two git/darcs repositories for each
project.
project
(the repository I work in) containing a.git
and a_darcs
project-tracking
(the repository that tracks changes from upstrream, also containing a.git
and a_darcs
I then pull new darcs-patches from project-tracking
into project
. Once my
the changes are in upstream, I obliterate everything to the checkpoint I started
with and pull the patches (now via git
) from project-tracking
.
Since I always make git-commits from the darcs-patches git
will track chmod
and symbolic-links for me.
Install
If your system python isn't 3.10 or newer use:
poetry env use $HOME/.pyenv/versions/3.10.5/bin/python3.10
to set a version installed by pyenv. You can probably set a lower version in
pyproject.toml
. 3.10 is just the one I am using and I know works.
Usage
Usage: git-darcs [OPTIONS]
Incremental import of git into darcs.
By default it imports from the first commit or the last checkpoint.
Options:
-v, --verbose / -nv, --no-verbose
-w, --warn / -nw, --no-warn Warn that repository will be cleaned
-b, --base TEXT First import from (commit-ish)
--help Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for git_darcs-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e86fdf03675fe80e7552d26e365fe842def4d97daad20a5f145146303cfd30d |
|
MD5 | 34212b3ed5689b815dfc08fea7acbc30 |
|
BLAKE2b-256 | 1cd3896765bf181b691960a8a28dd2af163b6b06592562f4a16334c90b2dea36 |