chiark / gitweb /
martin f. krafft [Sun, 14 Sep 2008 20:22:54 +0000 (21:22 +0100)]
amend debian/rules to set $prefix instead of $PREFIX.
Signed-off-by: martin f. krafft <madduck@debian.org>
martin f. krafft [Wed, 10 Sep 2008 08:31:36 +0000 (09:31 +0100)]
record new upstream in changelog
martin f. krafft [Wed, 10 Sep 2008 08:32:05 +0000 (09:32 +0100)]
Merge commit 'topgit-0.3'
Petr Baudis [Tue, 9 Sep 2008 22:48:56 +0000 (00:48 +0200)]
TopGit-0.3
Petr Baudis [Tue, 9 Sep 2008 22:48:24 +0000 (00:48 +0200)]
README: Remove stale TODO
Petr Baudis [Tue, 9 Sep 2008 22:47:15 +0000 (00:47 +0200)]
Merge branch 'tg-import'
Petr Baudis [Tue, 9 Sep 2008 22:37:41 +0000 (00:37 +0200)]
tg import: Make the progress reporting stand out more
Petr Baudis [Tue, 9 Sep 2008 22:35:48 +0000 (00:35 +0200)]
branch_contains(): More explicit call to git rev-list
Petr Baudis [Tue, 9 Sep 2008 22:32:44 +0000 (00:32 +0200)]
tg import: Fix up process_commit() progress reporting
Petr Baudis [Tue, 9 Sep 2008 22:31:17 +0000 (00:31 +0200)]
tg import -p PREFIX: Custom prefix instead of t/
Petr Baudis [Tue, 9 Sep 2008 22:29:24 +0000 (00:29 +0200)]
tg create -r BRANCH: Create branch based on a remote one
Petr Baudis [Tue, 9 Sep 2008 22:11:47 +0000 (00:11 +0200)]
README: Add synopsis for working with remotes
Petr Baudis [Tue, 9 Sep 2008 22:06:44 +0000 (00:06 +0200)]
tg import: Change default prefix from tp/ to t/
Petr Baudis [Tue, 9 Sep 2008 22:06:14 +0000 (00:06 +0200)]
tg import: Remove tg_ prefixes from functions
Petr Baudis [Tue, 9 Sep 2008 22:05:39 +0000 (00:05 +0200)]
tg import: Standard options parsing
Petr Baudis [Tue, 9 Sep 2008 22:03:16 +0000 (00:03 +0200)]
tg import: Standard script header
Petr Baudis [Tue, 9 Sep 2008 22:01:54 +0000 (00:01 +0200)]
tg import: Better description
Aneesh Kumar K.V [Wed, 13 Aug 2008 15:15:11 +0000 (20:45 +0530)]
topgit: Implement tg-import
This can be used to import a set of commits
between range specified by range1..range2
This should help us to convert an already
existing quilt, stgit branches to topgit
managed one
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Petr Baudis [Tue, 9 Sep 2008 20:21:59 +0000 (22:21 +0200)]
Account for direct-tg arguments in Usage strings
Petr Baudis [Tue, 9 Sep 2008 20:19:23 +0000 (22:19 +0200)]
Fix recursive tg calls: Pass tg parameters through properly
Petr Baudis [Tue, 9 Sep 2008 20:18:23 +0000 (22:18 +0200)]
tg summary: Fix spurious errors on tg-inconsistent remotes
Petr Baudis [Tue, 9 Sep 2008 20:02:07 +0000 (22:02 +0200)]
tg -r REMOTE: Support for switching base remote
Petr Baudis [Tue, 9 Sep 2008 19:55:55 +0000 (21:55 +0200)]
tg summary: Mark current branch with '>'
Petr Baudis [Tue, 9 Sep 2008 19:53:10 +0000 (21:53 +0200)]
tg info: Note if local head is ahead of remote mate
Petr Baudis [Tue, 9 Sep 2008 19:51:48 +0000 (21:51 +0200)]
tg summary: 'L' denotes that push will update remote mate
Petr Baudis [Tue, 9 Sep 2008 19:49:07 +0000 (21:49 +0200)]
tg summary: Show info about remote mates
Petr Baudis [Tue, 9 Sep 2008 19:42:46 +0000 (21:42 +0200)]
tg info: Asterisk-prefix 'out-of-band' warnings
Petr Baudis [Tue, 9 Sep 2008 19:41:55 +0000 (21:41 +0200)]
tg info: Show information about remote branches
Petr Baudis [Tue, 9 Sep 2008 19:38:23 +0000 (21:38 +0200)]
has_remote(): Introduce to check if branch has remote counterpart
Petr Baudis [Tue, 9 Sep 2008 19:33:55 +0000 (21:33 +0200)]
tg update: Support updating from remote branches
Currently, we only ever check against the base remote.
Petr Baudis [Tue, 9 Sep 2008 19:28:48 +0000 (21:28 +0200)]
recurse_deps+branch_needs_update(): Deal with remote branches
In case base needs update against remote base, the remote base ref
is reported. In case head needs update against remote head, the '%'
symbol (akin to ':') is reported.
Petr Baudis [Tue, 9 Sep 2008 19:28:09 +0000 (21:28 +0200)]
tg.sh: Set $base_remote to topgit.remote config value
Petr Baudis [Tue, 9 Sep 2008 18:58:19 +0000 (20:58 +0200)]
Factor out rev-parse --verify calls to new ref_exists() function
Petr Baudis [Tue, 9 Sep 2008 18:50:15 +0000 (20:50 +0200)]
tg-update.sh: Better explain base update
Petr Baudis [Mon, 1 Sep 2008 00:33:47 +0000 (02:33 +0200)]
tg remote: New command
Register TopGit-aware remote, populate local branches from one.
Petr Baudis [Mon, 1 Sep 2008 00:30:47 +0000 (02:30 +0200)]
tg summary: Fix confusing variable name
Petr Baudis [Sun, 31 Aug 2008 17:30:14 +0000 (19:30 +0200)]
README: Sketch of my current ideas on remotes handling
martin f. krafft [Tue, 12 Aug 2008 01:41:11 +0000 (22:41 -0300)]
Add various todos/wishlists
[pb: Trim down and expand]
Signed-off-by: martin f. krafft <madduck@debian.org>
martin f. krafft [Tue, 12 Aug 2008 01:26:20 +0000 (22:26 -0300)]
Add tg-export to gitignore
Signed-off-by: martin f. krafft <madduck@debian.org>
Bert Wesarg [Wed, 13 Aug 2008 07:11:15 +0000 (09:11 +0200)]
Makefile: Use $(wildcard) for commands_in
To prevent merge conflicts while adding new commands, use a wildcard for
the command list.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
David Brown [Thu, 14 Aug 2008 05:15:45 +0000 (22:15 -0700)]
Force adding the .topmsg and .topdep files.
If the .gitignore in effect is ignoring the .topmsg and .topdeps
files, tg create will fail trying to add these files. Add the
'-f option to these add commands to force the files to be added
anyway.
Signed-off-by: David Brown <git@davidb.org>
Jonathan Nieder [Wed, 13 Aug 2008 05:16:33 +0000 (00:16 -0500)]
tg-info: fix sed typo
There was a semicolon missing before a closing brace. The result
is an error message on some operating systems (e.g., Mac OS 10.3).
$ tg info
Topic Branch: t/some-topic ( 2/ 2 commits)
Subject: [PATCH] t/some-topic
Base:
082a7c9
sed: 1: "1{s/^/Depends: /;n}; s/ ...": extra characters a
t the end of n command
Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu>
Jonathan Nieder [Wed, 13 Aug 2008 00:17:22 +0000 (19:17 -0500)]
supply template argument to mktemp
mktemp versions before 1.5 did not allow omitting the template
(prefix.XXXXXX) argument. Thus on Mac OS X,
$ mktemp -d
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
So supply a filename template. To maintain the intended
behavior, we have to add -t, too. It was implied before.
Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu>
Jan Nieuwenhuizen [Tue, 12 Aug 2008 12:54:30 +0000 (14:54 +0200)]
TOPGIT: [PATCH] Use standard prefix and DESTDIR rather than explain
An install nitpick.
Signed-off-by: Jan Nieuwenhuizen <janneke@gnu.org>
Petr Baudis [Tue, 12 Aug 2008 17:35:54 +0000 (19:35 +0200)]
tg create: Set up refs/top-bases/ after conflict resolution
This has two reasons:
(i) In case of aborted operation, no junk is left over.
(ii) In older Git versions, git checkout -b errors out on detached HEAD.
Reported by Jan Holesovsky.
martin f. krafft [Tue, 12 Aug 2008 17:33:09 +0000 (14:33 -0300)]
add instructions for building from source
Signed-off-by: martin f. krafft <madduck@debian.org>
martin f. krafft [Tue, 12 Aug 2008 17:33:05 +0000 (14:33 -0300)]
Initial debianisation of 0.2
Signed-off-by: martin f. krafft <madduck@debian.org>
Petr Baudis [Tue, 12 Aug 2008 16:19:20 +0000 (18:19 +0200)]
tg-export: Ensure we don't overwrite a branch by git update-ref
Petr Baudis [Mon, 11 Aug 2008 22:54:03 +0000 (00:54 +0200)]
TopGit-0.2
Petr Baudis [Mon, 11 Aug 2008 22:06:38 +0000 (00:06 +0200)]
tg export: Print progress messages _before_ the action
Petr Baudis [Mon, 11 Aug 2008 22:05:43 +0000 (00:05 +0200)]
tg export: Support --quilt for exporting to quilt series
Petr Baudis [Mon, 11 Aug 2008 17:31:01 +0000 (19:31 +0200)]
tg update: Do not use ${:n:m} substitution (bash extension)
Petr Baudis [Mon, 11 Aug 2008 17:14:25 +0000 (19:14 +0200)]
tg export: Really remove TopGit metadata files when exporting
Petr Baudis [Mon, 11 Aug 2008 17:14:03 +0000 (19:14 +0200)]
README: tg collapse is already implemented (as tg export)
Petr Baudis [Mon, 11 Aug 2008 16:59:52 +0000 (18:59 +0200)]
tg.sh: Avoid use of non-SUS 'echo -e'
Petr Baudis [Sun, 10 Aug 2008 20:30:15 +0000 (22:30 +0200)]
tg-export: New command for cleaning up history
Petr Baudis [Sun, 10 Aug 2008 20:01:06 +0000 (22:01 +0200)]
recurse_deps(): Call itself, not needs_update(), recursively
Petr Baudis [Sun, 10 Aug 2008 19:59:43 +0000 (21:59 +0200)]
branch_needs_update(): Fox branch_contains call: $1 -> $_name
Petr Baudis [Sun, 10 Aug 2008 19:59:05 +0000 (21:59 +0200)]
measure_branch(): Use _bname instead of _name local variable
Petr Baudis [Sun, 10 Aug 2008 18:37:18 +0000 (20:37 +0200)]
recurse_deps(): _-prefix $depsfile
Petr Baudis [Sun, 10 Aug 2008 18:33:23 +0000 (20:33 +0200)]
needs_update(): Split to recurse_deps() and branch_needs_update() helpers
Antonio Ospite [Sat, 9 Aug 2008 00:58:22 +0000 (02:58 +0200)]
tg.sh: Add -h, --help aliases for the help command
I added some more help switches, I had to read the code to find the 'help'
command because the usual --help and -h didn't worked.
Signed-off-by: Antonio Ospite <ao2@openezx.org>
Signed-off-by: Petr Baudis <pasky@suse.cz>
Bert Wesarg [Fri, 8 Aug 2008 06:43:17 +0000 (08:43 +0200)]
tg.sh: it's info/attributes not info/gitattributes
The merge attribute hasn't any effect, because the wrong attribute file was
used.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Petr Baudis <pasky@suse.cz>
Bert Wesarg [Thu, 7 Aug 2008 16:39:15 +0000 (18:39 +0200)]
Makefile: mkdir $(bindir)
Mkdir $(bindir) in install target.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Petr Baudis <pasky@suse.cz>
Bert Wesarg [Wed, 6 Aug 2008 08:02:51 +0000 (10:02 +0200)]
tg.sh: Check for read permissions of help files
We currently check only for '-f' but we need to have read permissions as well.
And help files don't need the execution bit set.
[pb: Simplified test.]
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Petr Baudis <pasky@suse.cz>
Bert Wesarg [Wed, 6 Aug 2008 07:49:24 +0000 (09:49 +0200)]
tg.sh: Runtime tg-* command check
Check for tg commands at runtime, not the hard coded list inside tg.sh.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Petr Baudis <pasky@suse.cz>
Russell Steicke [Wed, 6 Aug 2008 02:43:48 +0000 (10:43 +0800)]
Pretty print the help creation commands in Makefile.
Print "[HELP] cmdname" while compiling the tg-cmdname.txt files.
Signed-off-by: Russell Steicke <russellsteicke@gmail.com>
Signed-off-by: Petr Baudis <pasky@suse.cz>
Petr Baudis [Tue, 5 Aug 2008 22:31:21 +0000 (00:31 +0200)]
create-help.sh: Fix 'tg update' generated help text
Russell Steicke [Mon, 4 Aug 2008 12:21:21 +0000 (20:21 +0800)]
Make "tg help cmd" print cmd help
"tg help" looked like it needed help, and stuff it needed to know
about was already in README.
Use awk to extract help information from the README file. Store
the help files in $(PREFIX)/share/topgit. "tg help foo" will cat
$(PREFIX)/share/topgit/tg-foo.txt.
Signed-off-by: Russell Steicke <russellsteicke@gmail.com>
Bert Wesarg [Tue, 5 Aug 2008 11:19:07 +0000 (13:19 +0200)]
tg-info: pretty print dependencies
Print one dependency per line in tg-info output.
[pb: Simplified implementation.]
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Petr Baudis <pasky@suse.cz>
Petr Baudis [Tue, 5 Aug 2008 22:18:59 +0000 (00:18 +0200)]
tg-create.sh: Pre-fill [PATCH] line with patch name
Bert Wesarg [Tue, 5 Aug 2008 19:13:30 +0000 (21:13 +0200)]
tg-create.sh: Introduce topgit.subjectprefix config option
Set the topgit.subjectprefix config option to prepend the string to the [PATCH]
field in the Subject: line of the '.topmsg' file.
[pb: Fixed conflicts and calling style.]
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Bert Wesarg [Tue, 5 Aug 2008 15:07:38 +0000 (17:07 +0200)]
tg-create.sh: fix help string
The help string of the tg-create command was not changed with the commit
"Change usage (-d ->arguments) <
ab712f2ed92a6e451bf2d482b03d2559697bf100>".
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Petr Baudis [Sun, 3 Aug 2008 18:47:58 +0000 (20:47 +0200)]
needs_update(): Fix $missing_deps passing
Instead of piping git cat-file output to our loop, we have to use
a temporary file so that $missing_deps gets exported properly.
Also, get rid of an extra leading space in its output.
Petr Baudis [Sun, 3 Aug 2008 18:30:03 +0000 (20:30 +0200)]
tg-create.sh: Introduce topgit.{to,cc,bcc} config options
Petr Baudis [Sun, 3 Aug 2008 18:20:51 +0000 (20:20 +0200)]
README: Mark future tg patch features as TODO clearly
Petr Baudis [Sun, 3 Aug 2008 18:18:04 +0000 (20:18 +0200)]
tg-create.sh: Change usage (-d -> arguments)
As suggested on IRC (I think by doener), it is more in the Git usage
spirit for tg create to take the patch dependencies as extra arguments
instead of -d parameter argument.
Petr Baudis [Sun, 3 Aug 2008 18:13:47 +0000 (20:13 +0200)]
README: TODO tg tidy -> tg collapse
Petr Baudis [Sun, 3 Aug 2008 18:01:39 +0000 (20:01 +0200)]
tg-summary.sh: Clean up printing status columns
Petr Baudis [Sun, 3 Aug 2008 18:01:16 +0000 (20:01 +0200)]
tg-summary.sh: Fix nonempty indicator misalignment
Petr Baudis [Sun, 3 Aug 2008 18:00:25 +0000 (20:00 +0200)]
tg-summary.sh: Mark branches with missing dependencies by '\!'
Petr Baudis [Sun, 3 Aug 2008 17:50:04 +0000 (19:50 +0200)]
needs_update(): Return non-zero if update is required
tg summary can avoid a single extra fork this way, and will be
able to harvest extra status information from needs_update.
Petr Baudis [Sun, 3 Aug 2008 17:47:46 +0000 (19:47 +0200)]
tg-update.sh: Abort on missing dependencies
Petr Baudis [Sun, 3 Aug 2008 17:43:07 +0000 (19:43 +0200)]
tg-info.sh: Show missing dependencies (needs_update() enhancement)
needs_update() now verifies if the _dep refs exists and adds it
to a $missing_deps list if that's not the case.
Petr Baudis [Sun, 3 Aug 2008 17:32:49 +0000 (19:32 +0200)]
tg-patch.sh: Bring deplist format in sync with tg info
Petr Baudis [Sun, 3 Aug 2008 17:31:45 +0000 (19:31 +0200)]
tg-info.sh: Fix list of >1 dependencies
Petr Baudis [Sun, 3 Aug 2008 14:28:41 +0000 (16:28 +0200)]
tg.sh: setup_hook(): Test existence instead of -x
Also, be more set -e friendly in boolean lists.
Russell Steicke [Sun, 3 Aug 2008 14:14:01 +0000 (22:14 +0800)]
Check for pre-commit hook existence.
Running tg in a repo without an active pre-commit hook fails
saying
grep: .git/hooks/pre-commit: No such file or directory
cat: .git/hooks/pre-commit: No such file or directory
Even "tg help" does this! So add extra checks for existence
of the pre-commit hook.
Petr Baudis [Sun, 3 Aug 2008 14:02:10 +0000 (16:02 +0200)]
README: TODO for tg tidy
Petr Baudis [Sun, 3 Aug 2008 12:54:12 +0000 (14:54 +0200)]
README: TODO for tg depend
Petr Baudis [Sun, 3 Aug 2008 12:49:33 +0000 (14:49 +0200)]
README: Two TODOs for tg summary
Petr Baudis [Sun, 3 Aug 2008 11:32:12 +0000 (13:32 +0200)]
README: Fix synopsis of resuming tg create
Noticed-by: Samuel Tardieu <sam@rfc1149.net>
Petr Baudis [Sun, 3 Aug 2008 02:35:44 +0000 (04:35 +0200)]
TopGit v0.1
Petr Baudis [Sun, 3 Aug 2008 02:32:47 +0000 (04:32 +0200)]
README: Reword randomly
Petr Baudis [Sun, 3 Aug 2008 02:21:01 +0000 (04:21 +0200)]
tg-summary.sh: Add a 0 column denoting branch emptiness
Petr Baudis [Sun, 3 Aug 2008 02:20:04 +0000 (04:20 +0200)]
tg-delete.sh: Factor out the emptiness test to tg.sh:branch_empty()
Petr Baudis [Sun, 3 Aug 2008 02:00:46 +0000 (04:00 +0200)]
tg-patch.sh: Fix list of >1 dependencies
Petr Baudis [Sun, 3 Aug 2008 01:56:34 +0000 (03:56 +0200)]
tg-create.sh: Fix several bugs when resuming after conflicts
Petr Baudis [Sun, 3 Aug 2008 01:38:30 +0000 (03:38 +0200)]
tg-summary.sh: Take base revision from for-each-ref output
Petr Baudis [Sun, 3 Aug 2008 01:27:21 +0000 (03:27 +0200)]
tg-summary.sh: Reuse already available base rev information