stgit
18 years agoImplement an 'import' command
Catalin Marinas [Wed, 27 Jul 2005 21:17:25 +0000 (22:17 +0100)]
Implement an 'import' command

This patch implements the 'import' command.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoAllow the GIT ids to be more flexible
Catalin Marinas [Wed, 27 Jul 2005 10:04:32 +0000 (11:04 +0100)]
Allow the GIT ids to be more flexible

The current implementation does not allow hash values or other *HEAD
names to be passed to the 'diff' command.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoFix the patch name checking in push.py
Catalin Marinas [Tue, 26 Jul 2005 12:54:56 +0000 (13:54 +0100)]
Fix the patch name checking in push.py

For an unknown patch name, the assert in stack.py fails. Fix the calling
function to check the pre-conditions.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoAdd a patch renaming command
Catalin Marinas [Tue, 26 Jul 2005 12:54:56 +0000 (13:54 +0100)]
Add a patch renaming command

This command changes the name of a patch

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years ago[AN] status for newly added files
Catalin Marinas [Tue, 26 Jul 2005 12:54:56 +0000 (13:54 +0100)]
[AN] status for newly added files

This patch enables displaying of the newly added files prefixed with
either A or N.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoImprove the help message for commands
Catalin Marinas [Sun, 24 Jul 2005 10:44:10 +0000 (11:44 +0100)]
Improve the help message for commands

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoAdd authentication capability to the mail command
Bryan larsen [Thu, 21 Jul 2005 21:12:10 +0000 (22:12 +0100)]
Add authentication capability to the mail command

Add authentication capability to the mail command.  Added 'smtppassword'
and 'smtpuser' to config file and --smtp-user, --smtp-password to command
line.

Signed-off-by: Bryan Larsen <bryan.larsen@gmail.com>
18 years agoUpdate the TODO file
Catalin Marinas [Wed, 20 Jul 2005 12:18:28 +0000 (13:18 +0100)]
Update the TODO file

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoMake the 'mail' command a bit safer
Catalin Marinas [Wed, 20 Jul 2005 11:59:10 +0000 (12:59 +0100)]
Make the 'mail' command a bit safer

A simple 'mail' command automatically sends all the applied patches.
This patch changes so that the user needs to explicitely add the
'--all' or '--range' options.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoAdd a 'pull' command
Catalin Marinas [Wed, 20 Jul 2005 10:46:43 +0000 (11:46 +0100)]
Add a 'pull' command

The current implementation just uses git-fetch-script

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoImplement the 'mail' command
Catalin Marinas [Tue, 19 Jul 2005 16:30:45 +0000 (17:30 +0100)]
Implement the 'mail' command

This command is used to send a series of patches via SMTP. The
.git/patchmail.tmpl file is used as the default template. A first message
template can be used with the --first option. Example templates are in
the examples/ directory.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoFix the exception class name in export.py
Catalin Marinas [Tue, 19 Jul 2005 12:08:24 +0000 (13:08 +0100)]
Fix the exception class name in export.py

MainException replaced with CmdException

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoAdd --force option to new
Catalin Marinas [Fri, 15 Jul 2005 14:31:17 +0000 (15:31 +0100)]
Add --force option to new

This option creates a new patch even if there are local changes in the
tree. It is useful if one starts modifying the tree but forgot to create
a patch for it.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoImplement 'clean' cmd
Catalin Marinas [Fri, 15 Jul 2005 12:10:10 +0000 (13:10 +0100)]
Implement 'clean' cmd

This command deletes all the empty patches from the series.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agocrt_series initialisation changed
Catalin Marinas [Thu, 14 Jul 2005 16:21:44 +0000 (17:21 +0100)]
crt_series initialisation changed

The current model does not allow running any command outside a GIT tree.
Even 'help' fails. The simple hack is to use setattr to initialise
crt_series in a module. The other option would be to initialise it in
every command file but I'm too lazy to do it.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoallow spaces in filenames (second try)
Bryan Larsen [Thu, 14 Jul 2005 10:09:37 +0000 (11:09 +0100)]
allow spaces in filenames (second try)

The current version of stgit does not allow whitespace in filenames.
This patch fixes that.  It also speeds up operations on large filesets
considerably.

Signed-off-by: Bryan Larsen <bryan.larsen@gmail.com>
18 years agoThe top patch is never exported.
Bryan Larsen [Thu, 14 Jul 2005 09:48:51 +0000 (10:48 +0100)]
The top patch is never exported.

Signed-off-by: Bryan Larsen <bryan.larsen@gmail.com>
18 years agoAdd "name <email>" parsing for simpler commands
Catalin Marinas [Thu, 14 Jul 2005 09:48:36 +0000 (10:48 +0100)]
Add "name <email>" parsing for simpler commands

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoUsing the --message option with the new command fails. Fix it.
Bryan Larsen [Wed, 13 Jul 2005 21:36:26 +0000 (22:36 +0100)]
Using the --message option with the new command fails.  Fix it.

Signed-off-by: Bryan Larsen <bryan.larsen@gmail.com>
18 years agoTrack git/stack exceptions when initialising crt_series
Catalin Marinas [Wed, 13 Jul 2005 16:10:17 +0000 (17:10 +0100)]
Track git/stack exceptions when initialising crt_series

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoInstall the stgit.commands package
Catalin Marinas [Tue, 12 Jul 2005 22:05:20 +0000 (23:05 +0100)]
Install the stgit.commands package

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoSeparate the commands in stgit/commands/* files
Catalin Marinas [Tue, 12 Jul 2005 22:02:06 +0000 (23:02 +0100)]
Separate the commands in stgit/commands/* files

The main.py file is getting bigger and bigger and it will soon become
unmaintenable. This patch creates separate files for each command.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoChangeLog removed
Catalin Marinas [Tue, 12 Jul 2005 21:23:41 +0000 (22:23 +0100)]
ChangeLog removed

It will be automatically generated for every snapshot. Otherwise, the
history is in GIT.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoAdd --range option to export
Catalin Marinas [Tue, 12 Jul 2005 17:36:06 +0000 (18:36 +0100)]
Add --range option to export

Useful when you only need to export a range of the applied patches.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoUpdate the git cache for the resolved file
Catalin Marinas [Mon, 11 Jul 2005 17:47:48 +0000 (18:47 +0100)]
Update the git cache for the resolved file

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoFix __checkout_files() in gitmergeonefile.py
Catalin Marinas [Mon, 11 Jul 2005 17:47:01 +0000 (18:47 +0100)]
Fix __checkout_files() in gitmergeonefile.py

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoAllow local changes if the patch deleted is not current
Catalin Marinas [Mon, 11 Jul 2005 17:45:40 +0000 (18:45 +0100)]
Allow local changes if the patch deleted is not current

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoAdd --template option to export
Catalin Marinas [Mon, 11 Jul 2005 17:44:40 +0000 (18:44 +0100)]
Add --template option to export

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 years agoAdd stgit. before utils in import
Catalin Marinas [Sun, 10 Jul 2005 10:32:34 +0000 (11:32 +0100)]
Add stgit. before utils in import

18 years agoInitial commit (Release 0.4) v0.4
Catalin Marinas [Sun, 10 Jul 2005 07:29:31 +0000 (08:29 +0100)]
Initial commit (Release 0.4)