---
name: "darcs_load_dirs"
section: "1"
platform: "linux"
package: "darcs-load-dirs"
version: "1.1.8"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/darcs_load_dirs"
---

# darcs\_load\_dirs(1)

Import upstream archives into tla, hg, darcs, or git and handle renames

## NAME

darcs\_load\_dirs - Import upstream archives into tla, hg, darcs, or git and handle renames

## SYNOPSIS

**darcs\_load\_dirs** \[ **-w***WC* \| **--wc=***WC* \] \[ **-l***FILE* \| **--log=***FILE* \] \[ **-L***TEXT* \| **--log-message=***TEXT* \] \[ **-s***MSG* \| **--summary=***MSG* \] \[ **-v** \| **--verbose** \] \[ **-n** \| **--no-commit** \] \[ **-f** \| **--fs-changes-only** \] **vendor\_source\_dir**

**darcs\_load\_dirs** **--version**

**darcs\_load\_dirs** \[ **--help** \| **-h** \]

## DESCRIPTION

**darcs\_load\_dirs** is a tool to help you import archives from people that do not use Arch, Mercurial, Darcs, or Git into an Arch, Mercurial, Darcs, or Git archive.  Along the way, it takes care of all the typical hassles: it will create tags in the repository for new files; delete tags for removed files; and move tags for files that have themselves been moved. **darcs\_load\_dirs** can handle both first imports of a package and successive imports.

For those familiar with Subversion, you will know that it has a tool called **svn\_load\_dirs**.  **darcs\_load\_dirs** is modeled after that program, but contains various improvements for ease of use.

## USAGE

In the simplest case, you will simply run **darcs\_load\_dirs** from your working directory, passing it the name of the directory containing the new upstream sources.  **darcs\_load\_dirs** will run, usually making and committing changes without any need of greater assistance from you.

### RENAMED FILES

**darcs\_load\_dirs** can automatically detect added files and deleted files if they occur in isolation.  However, it cannot automatically tell the difference between a delete and an add, and a rename.  (There is not enough information in simple upstream imports to capture the intent.)   Therefore, **darcs\_load\_dirs** will prompt you to solve the problem. You can opt to ignore it -- **darcs\_load\_dirs** will just issue deletes and adds as appropriate -- but then your history will be harder to track if there were indeed renames along the way.

You will be presented with a four-column listing.  Those columns, in order from left to right, represent:

- 1\.

  File number for deleted file

- 2\.

  File name of deleted file

- 3\.

  File number of added file

- 4\.

  File name of added file

You have three options at this point: you can press q to indicate that there are no more renames; you can press r to request the list be re-drawn, or you can supply one or more renames.

A rename uses the left column as the old name and the right column as the new name.  To save you typing, you just enter the appropriate file numbers separated by spaces.  So, if the file at position 5 on the left moved to position 1b on the right, just enter "5 1b".  After doing that, the list will be automatically re-drawn, and you can either make further selections or exit.

If you want to rename several files at once, enter your rename commands separated by commas.  For instance, "5 1b, 6 1c".

## OPTIONS

- **-h**

  - **--help**

  Displays a brief summary of the available options and exits.

- **-l***FILE*

  - **--log=***FILE*

  Add the contents of *FILE* to the end of the log message automatically generated by **darcs\_load\_dirs** for a commit/record.

- **-L***TEXT*

  - **--log-message=***TEXT*

  Add the *TEXT* specified on the command line to the log message.

- **-s***MSG*

  - **--summary=***MSG*

  Sets the log summary line to the *MSG* supplied on the command line.  This operation requires Darcs, Mercurial, or  tla 1.1 or above; tla 1.0 does not provide the features necessary to implement it.

- **-n**

  - **--no-commit**

  Do not commit changes to the target VCS.

- **-f**

  - **--fs-changes-only**

  Move files in the filesystem, but do not inform VCS of changes.  You will almost certainly want to use this with \\-n.  This also suppresses the interactive interface.

- **-v**

  - **--verbose**

  Causes **darcs\_load\_dirs** to display additional status information.  You will see the darcs/tla/git/hg commands that are being run behind the scenes, and some executed commands may receive arguments asking them to be more verbose as well.

- **--version**

  Causes **darcs\_load\_dirs** to print its version number and exit.

- **-w***WC*

  - **--wc=***WC*

  Explicitly set the working copy directory to *WC*.  If not specified, defaults to the current working directory.

## COPYRIGHT

**darcs\_load\_dirs**, and this manual, are Copyright (C) 2003-2007 John Goerzen.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

## AUTHOR

**darcs\_load\_dirs**, its libraries, documentation, and all included files, except where noted, was written by John Goerzen \<jgoerzen@complete.org\> and copyright is held as stated in the COPYRIGHT section.

The homepage for **darcs\_load\_dirs** is\
  \<URL:http://software.complete.org/vcs-load-dirs\>

This package may be downloaded from\
  \<URL:http://packages.debian.org/vcs-load-dirs\>.

## SEE ALSO

[**tla**(1)](/tla/1.md), [**darcs**(1)](/darcs/1.md), [**hg**(1)](/hg/1.md), [**git**(1)](/git/1.md), [**tla-buildpackage**(1)](/tla-buildpackage/1.md), [**darcs-buildpackage**(1)](/darcs-buildpackage/1.md), **hg-buildpackage**(1).
