]> git.madduck.net Git - code/myrepos.git/log

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

code/myrepos.git
17 years agoDo not fail determining git url
martin f. krafft [Thu, 25 Oct 2007 23:11:08 +0000 (01:11 +0200)]
Do not fail determining git url

If no remote URL is in GIT_CONFIG, git-config returns non-zero and thus
causes the script to fail due to set -e. We test for $url anyway, so we
can just keep going here.

17 years agoreplace basename call with shell construct
martin f. krafft [Thu, 25 Oct 2007 21:44:41 +0000 (23:44 +0200)]
replace basename call with shell construct

Use ${PWD##*/} instead of $(basename $PWD)

17 years agoAdd info() and warning() akin to error()
martin f. krafft [Thu, 25 Oct 2007 21:39:41 +0000 (23:39 +0200)]
Add info() and warning() akin to error()

They don't exist but print to stderr.

17 years agoreplace $(pwd) calls with $PWD
martin f. krafft [Thu, 25 Oct 2007 21:37:24 +0000 (23:37 +0200)]
replace $(pwd) calls with $PWD

also ensure that $PWD is defined by adding it to lib

17 years agoRefactor repository type detection
martin f. krafft [Thu, 25 Oct 2007 21:35:00 +0000 (23:35 +0200)]
Refactor repository type detection

Repo type is now detected in get_repo_type() and case statements are
used instead of the if/elif/else/fi statements.

17 years agoRefactor checking for (type of) Git repository
martin f. krafft [Thu, 25 Oct 2007 20:41:12 +0000 (22:41 +0200)]
Refactor checking for (type of) Git repository

lib now has two new functions:

is_git_repo returns 0/true if its argument is a git repository
get_git_repo_type return 0/true if its argument is a git repository and
  prints one of non-bare/bare/fake-bare to stdout

The mr function implementations now use these functions and have been
simplified. We also allow bare repositories with limited functionality.

17 years agoImplement (initial) support for fake bare git repositories
martin f. krafft [Thu, 25 Oct 2007 19:57:17 +0000 (21:57 +0200)]
Implement (initial) support for fake bare git repositories

Fake bare git repositories are non-bare git repositories with a detached
worktree. Thus, they require core.worktree set in the configuration. The
current implementation assumes that such repositories are named foo.git.

So far, support has only been added for register, update, log, and
status. Specifically diff and commit do not work yet.

17 years agoadd a vim modeline to preserve joey's tabbing prefs
martin f. krafft [Thu, 25 Oct 2007 19:38:13 +0000 (21:38 +0200)]
add a vim modeline to preserve joey's tabbing prefs

17 years agoreleasing version 0.8
Joey Hess [Thu, 25 Oct 2007 10:22:59 +0000 (06:22 -0400)]
releasing version 0.8

17 years ago* Patch from Simon McVittie, to pass -a to darcs commands to avoid
Joey Hess [Thu, 25 Oct 2007 10:22:32 +0000 (06:22 -0400)]
* Patch from Simon McVittie, to pass -a to darcs commands to avoid
  interactive updates. Closes: #447999

17 years ago* Improve "in subdir" message.
Joey Hess [Wed, 24 Oct 2007 22:18:10 +0000 (18:18 -0400)]
* Improve "in subdir" message.

17 years agoreleasing version 0.7
Joey Hess [Wed, 24 Oct 2007 05:18:51 +0000 (01:18 -0400)]
releasing version 0.7

17 years ago* Patch from Simon McVittie, adding support for darcs repositories.
Joey Hess [Tue, 23 Oct 2007 16:46:58 +0000 (12:46 -0400)]
* Patch from Simon McVittie, adding support for darcs repositories.
Closes: #447729
17 years agouse git tag -l , needed by older gits
Joey Hess [Mon, 22 Oct 2007 18:57:06 +0000 (14:57 -0400)]
use git tag -l , needed by older gits

17 years ago* Fix inverted tests in tags command. (madduck)
Joey Hess [Mon, 22 Oct 2007 16:29:19 +0000 (12:29 -0400)]
* Fix inverted tests in tags command. (madduck)

17 years agoswitch tests for vcs directories for tags method
martin f. krafft [Mon, 22 Oct 2007 06:38:59 +0000 (08:38 +0200)]
switch tests for vcs directories for tags method

Signed-off-by: martin f. krafft <madduck@madduck.net>
17 years agoreleasing version 0.6
Joey Hess [Mon, 22 Oct 2007 01:54:42 +0000 (21:54 -0400)]
releasing version 0.6

17 years agodon't print \n between skipped repos
Joey Hess [Mon, 22 Oct 2007 00:04:26 +0000 (20:04 -0400)]
don't print \n between skipped repos

17 years agogetcwd might fail if the working directory is deleted. deal with it.
Joey Hess [Mon, 22 Oct 2007 00:02:18 +0000 (20:02 -0400)]
getcwd might fail if the working directory is deleted. deal with it.

17 years agofix leaf subdir case
Joey Hess [Sun, 21 Oct 2007 23:33:33 +0000 (19:33 -0400)]
fix leaf subdir case

17 years ago* Add ability to reorder repos, if you want mr to act on a given repo first
Joey Hess [Sun, 21 Oct 2007 21:21:22 +0000 (17:21 -0400)]
* Add ability to reorder repos, if you want mr to act on a given repo first
  or last.

17 years agoimprove wording
Joey Hess [Sun, 21 Oct 2007 18:09:53 +0000 (14:09 -0400)]
improve wording

17 years ago* hours_since was broken by design, and fixing it involved changing
Joey Hess [Sun, 21 Oct 2007 18:08:36 +0000 (14:08 -0400)]
* hours_since was broken by design, and fixing it involved changing
  its calling convention. If you used the old version, you'll get errors
  from the new old.

17 years agoreally works now
Joey Hess [Sun, 21 Oct 2007 06:16:22 +0000 (02:16 -0400)]
really works now

17 years agoon second thought, this is a better test
Joey Hess [Sun, 21 Oct 2007 06:12:21 +0000 (02:12 -0400)]
on second thought, this is a better test

17 years agoadd syntax check to build process
Joey Hess [Sun, 21 Oct 2007 06:11:11 +0000 (02:11 -0400)]
add syntax check to build process

17 years agoassume any action with "update" in its name is like update, and should checkout inste...
Joey Hess [Sun, 21 Oct 2007 06:09:56 +0000 (02:09 -0400)]
assume any action with "update" in its name is like update, and should checkout instead if the
directory isn't present

not very happy with this, but it makes the quietupdate hack work..

17 years agoinclude a simplified mrconfig and move the hairy stuff to mrconfig.complex
Joey Hess [Sun, 21 Oct 2007 05:54:40 +0000 (01:54 -0400)]
include a simplified mrconfig and move the hairy stuff to mrconfig.complex

17 years ago* Add to the example mrconfig a "tags" command that lists tags.
Joey Hess [Sun, 21 Oct 2007 05:49:49 +0000 (01:49 -0400)]
* Add to the example mrconfig a "tags" command that lists tags.
  (Currently only for svn and git.)

17 years agoreword
Joey Hess [Sun, 21 Oct 2007 05:43:46 +0000 (01:43 -0400)]
reword

17 years agomention mercurial too
Joey Hess [Sun, 21 Oct 2007 05:42:49 +0000 (01:42 -0400)]
mention mercurial too

17 years agoadd announcedir target, for news on its web page
Joey Hess [Sun, 21 Oct 2007 05:29:05 +0000 (01:29 -0400)]
add announcedir target, for news on its web page

17 years agoreleasing version 0.5
Joey Hess [Sun, 21 Oct 2007 05:27:40 +0000 (01:27 -0400)]
releasing version 0.5

17 years agomention new feature
Joey Hess [Sun, 21 Oct 2007 05:26:55 +0000 (01:26 -0400)]
mention new feature

17 years agoneed to manally reap children since it manually forks now
Joey Hess [Sun, 21 Oct 2007 05:23:29 +0000 (01:23 -0400)]
need to manally reap children since it manually forks now

17 years agotypo
Joey Hess [Sun, 21 Oct 2007 05:17:54 +0000 (01:17 -0400)]
typo

17 years agominor wording improvements
Joey Hess [Sun, 21 Oct 2007 05:15:42 +0000 (01:15 -0400)]
minor wording improvements

17 years agofix -j mode to preserve stderr distinct from stdout,
Joey Hess [Sun, 21 Oct 2007 05:10:59 +0000 (01:10 -0400)]
fix -j mode to preserve stderr distinct from stdout,
while still buffering them together

17 years agotypo
Joey Hess [Sat, 20 Oct 2007 21:32:46 +0000 (17:32 -0400)]
typo

17 years ago-j bugfixes
Joey Hess [Sat, 20 Oct 2007 21:29:11 +0000 (17:29 -0400)]
-j bugfixes

No need to explicitly wait for processes, closing the filehandle
to the child does that.

17 years agoreorder to avoid race
Joey Hess [Sat, 20 Oct 2007 21:18:19 +0000 (17:18 -0400)]
reorder to avoid race

17 years ago* Incorporate code from on Anthony Towns's mrs, to allow running
Joey Hess [Sat, 20 Oct 2007 21:08:54 +0000 (17:08 -0400)]
* Incorporate code from on Anthony Towns's mrs, to allow running
  multiple jobs in parallel. The -j flag controls this.
  This can produce enormous speedups. For me, mr update takes
  12 minutes, while mr -j 10 update takes 1 minute!

17 years agoimprove quietupdate
Joey Hess [Sat, 20 Oct 2007 17:31:17 +0000 (13:31 -0400)]
improve quietupdate

17 years agoadd an example of how to run git w/o getting random crap on stderr
Joey Hess [Sat, 20 Oct 2007 17:25:22 +0000 (13:25 -0400)]
add an example of how to run git w/o getting random crap on stderr

git is a real mess when it comes to
 a) parsing command line options consistently,
 b) outputting non-errors to stderr

:-(

17 years agoadd mercurial
Joey Hess [Sat, 20 Oct 2007 17:02:57 +0000 (13:02 -0400)]
add mercurial

17 years agocleanups
Joey Hess [Sat, 20 Oct 2007 17:01:38 +0000 (13:01 -0400)]
cleanups

17 years agoAdd support for mercurial
Alexander Wirt [Sat, 20 Oct 2007 10:10:25 +0000 (12:10 +0200)]
Add support for mercurial

Hi Joey,

this patch adds support for mecurial to mr.
It would be nice if you would be able to integrate it into mr.

Thanks
Alex

17 years agogit push example
Joey Hess [Sat, 20 Oct 2007 00:53:53 +0000 (20:53 -0400)]
git push example

17 years ago* Change mr update to use git pull -t origin master, to make sure new tags
Joey Hess [Sat, 20 Oct 2007 00:52:55 +0000 (20:52 -0400)]
* Change mr update to use git pull -t origin master, to make sure new tags
  are pulled. And since those might not always be the right parameters
  for git pull, any parameters passed to mr update will replace them.

17 years agoexample
Joey Hess [Fri, 19 Oct 2007 20:15:58 +0000 (16:15 -0400)]
example

17 years ago* Fix output of "mr config DEFAULT lib".
Joey Hess [Fri, 19 Oct 2007 20:14:58 +0000 (16:14 -0400)]
* Fix output of "mr config DEFAULT lib".

17 years agorewording
Joey Hess [Fri, 19 Oct 2007 20:02:47 +0000 (16:02 -0400)]
rewording

17 years ago* Removed special case repository deletion handling code. The same
Joey Hess [Fri, 19 Oct 2007 20:01:11 +0000 (16:01 -0400)]
* Removed special case repository deletion handling code. The same
  thing can be accomplished in a mrconfig by skipping a repo unless
  it exists, and printing a reminder on update. See the mrconfig file
  for an example.

17 years agocrazy idea
Joey Hess [Fri, 19 Oct 2007 00:17:49 +0000 (20:17 -0400)]
crazy idea

17 years agoa todo item based on one from madduck, plus my own experiences with chained updates
Joey Hess [Thu, 18 Oct 2007 22:35:01 +0000 (18:35 -0400)]
a todo item based on one from madduck, plus my own experiences with chained updates

17 years agoreleasing version 0.4
Joey Hess [Thu, 18 Oct 2007 22:24:52 +0000 (18:24 -0400)]
releasing version 0.4

17 years agoupdate changelog
Joey Hess [Thu, 18 Oct 2007 22:02:18 +0000 (18:02 -0400)]
update changelog

17 years agoI think it works now
Joey Hess [Thu, 18 Oct 2007 21:59:47 +0000 (17:59 -0400)]
I think it works now

17 years agoMerge branch 'master' into mrconfig_bestguess
Joey Hess [Thu, 18 Oct 2007 21:30:44 +0000 (17:30 -0400)]
Merge branch 'master' into mrconfig_bestguess

17 years agodon't abs_path($ENV{MR_CONFIG})
Joey Hess [Thu, 18 Oct 2007 20:42:30 +0000 (16:42 -0400)]
don't abs_path($ENV{MR_CONFIG})

mrconfig files can be symlinks to files in other directories. But the directory
the file is is significant, as it's the directory paths in the file
are relative to. abs_path follows the symlink, so take care not to use it.

17 years ago* Support registering CVS repositories. Closes: #447171
Joey Hess [Thu, 18 Oct 2007 20:20:51 +0000 (16:20 -0400)]
* Support registering CVS repositories. Closes: #447171

17 years agoincomplete work to try to guess the right mrconfig to register to
Joey Hess [Thu, 18 Oct 2007 20:11:31 +0000 (16:11 -0400)]
incomplete work to try to guess the right mrconfig to register to

madduck suggested that mr register should register to the closest
mrconfig file. This branch is a start at trying to do that, by redefining
MR_CONFIG to hold either the config file that registers the given repo,
or for unregistered repos, the closest mrconfig file

Current issues:
- absolute path is always passed in MR_CONFIG, which makes mr config
  add new repos with absolute paths
- MR_CONFIG is not set to the closest mrconfig file for unregistered repos
  yet. The problem is, if I do this, then it will override the setting
  from -c, and so it won't be possible to use mr register to register in an
  explicitly specified config file.

I think it also has some other bugs. For example, the current mapping
between directory and config file only allows for one config file in a given
directory. Which might not be true if you're using mr -c.

As far as I can take it for now, so stashing away in this branch.

17 years agotypo
Joey Hess [Thu, 18 Oct 2007 19:45:06 +0000 (15:45 -0400)]
typo

17 years agotypo
Joey Hess [Thu, 18 Oct 2007 19:44:56 +0000 (15:44 -0400)]
typo

17 years ago* Allow for more complex deleted tests, such as marking a repo deleted on
Joey Hess [Thu, 18 Oct 2007 19:43:09 +0000 (15:43 -0400)]
* Allow for more complex deleted tests, such as marking a repo deleted on
  some hosts, while not on others.

17 years agofis logic stupidity
Joey Hess [Thu, 18 Oct 2007 19:31:33 +0000 (15:31 -0400)]
fis logic stupidity

This kind of thing is why I shouldn't commit changes before lunch. But do I wait for lunch before committing stupid logic errors? Noo..

17 years ago* Add the -n switch, for disabling recursion.
Joey Hess [Thu, 18 Oct 2007 19:20:19 +0000 (15:20 -0400)]
* Add the -n switch, for disabling recursion.

17 years ago* Fix a bug caused by a stupid typo.
Joey Hess [Thu, 18 Oct 2007 19:01:17 +0000 (15:01 -0400)]
* Fix a bug caused by a stupid typo.

17 years ago* Output list of failed repos to stderr when -s is used.
Joey Hess [Thu, 18 Oct 2007 18:57:21 +0000 (14:57 -0400)]
* Output list of failed repos to stderr when -s is used.

17 years agoimprove changelog
Joey Hess [Thu, 18 Oct 2007 18:29:24 +0000 (14:29 -0400)]
improve changelog

17 years agofixup comment
Joey Hess [Thu, 18 Oct 2007 18:14:50 +0000 (14:14 -0400)]
fixup comment

17 years agoadd changelog entry and use mkdir -p
Joey Hess [Thu, 18 Oct 2007 18:09:27 +0000 (14:09 -0400)]
add changelog entry and use mkdir -p

17 years agoensure parent dir exists prior to checkout
martin f. krafft [Thu, 18 Oct 2007 15:30:30 +0000 (17:30 +0200)]
ensure parent dir exists prior to checkout

Signed-off-by: martin f. krafft <madduck@madduck.net>
17 years ago* Signal handling for commands run by mr, including handling of SIGINT
Joey Hess [Thu, 18 Oct 2007 17:58:44 +0000 (13:58 -0400)]
* Signal handling for commands run by mr, including handling of SIGINT
  to stop mr.

17 years ago* Fix mr register to work when -c is specified using a relative path and
Joey Hess [Thu, 18 Oct 2007 17:33:05 +0000 (13:33 -0400)]
* Fix mr register to work when -c is specified using a relative path and
  is used to register a sibdirectory.

17 years agoreleasing version 0.3
Joey Hess [Wed, 17 Oct 2007 16:49:19 +0000 (12:49 -0400)]
releasing version 0.3

17 years ago* Typo files from madduck.
Joey Hess [Wed, 17 Oct 2007 16:47:17 +0000 (12:47 -0400)]
* Typo files from madduck.

17 years ago* mr register will now write to whatever config file is specified with -c
Joey Hess [Wed, 17 Oct 2007 16:46:09 +0000 (12:46 -0400)]
* mr register will now write to whatever config file is specified with -c

17 years agotypo
Joey Hess [Wed, 17 Oct 2007 01:17:14 +0000 (21:17 -0400)]
typo

17 years ago* Add a check to make sure the expected directory exists after checkout.
Joey Hess [Tue, 16 Oct 2007 23:51:42 +0000 (19:51 -0400)]
* Add a check to make sure the expected directory exists after checkout.

17 years agosimplify, not going to track my own file for this as it's increasingly not
Joey Hess [Tue, 16 Oct 2007 18:30:57 +0000 (14:30 -0400)]
simplify, not going to track my own file for this as it's increasingly not
a good example :-)

17 years agoupdate
Joey Hess [Tue, 16 Oct 2007 18:29:28 +0000 (14:29 -0400)]
update

17 years agoreleasing version 0.2
Joey Hess [Tue, 16 Oct 2007 06:56:13 +0000 (02:56 -0400)]
releasing version 0.2

17 years agonew todo item
Joey Hess [Tue, 16 Oct 2007 06:39:03 +0000 (02:39 -0400)]
new todo item

17 years agoadd -s option
Joey Hess [Tue, 16 Oct 2007 06:13:42 +0000 (02:13 -0400)]
add -s option

17 years ago* Fix a bug in inheritance of default settings in chained .mrconfig files.
Joey Hess [Tue, 16 Oct 2007 05:41:03 +0000 (01:41 -0400)]
* Fix a bug in inheritance of default settings in chained .mrconfig files.

17 years agodocs
Joey Hess [Mon, 15 Oct 2007 01:07:49 +0000 (21:07 -0400)]
docs

17 years agoheh, aj
Joey Hess [Mon, 15 Oct 2007 00:49:37 +0000 (20:49 -0400)]
heh, aj

17 years ago* Fix line number display for config file parse errors.
Joey Hess [Sun, 14 Oct 2007 23:06:41 +0000 (19:06 -0400)]
* Fix line number display for config file parse errors.

17 years agoreleasing version 0.1
Joey Hess [Sun, 14 Oct 2007 18:25:12 +0000 (14:25 -0400)]
releasing version 0.1

17 years agoadd folding
Joey Hess [Sun, 14 Oct 2007 18:22:35 +0000 (14:22 -0400)]
add folding

17 years agoadd
Joey Hess [Sun, 14 Oct 2007 18:18:02 +0000 (14:18 -0400)]
add

17 years agorewording
Joey Hess [Sun, 14 Oct 2007 07:05:21 +0000 (03:05 -0400)]
rewording

17 years agoimprove description
Joey Hess [Sun, 14 Oct 2007 06:00:50 +0000 (02:00 -0400)]
improve description

17 years agoincompatible mrconfig file format change
Joey Hess [Sun, 14 Oct 2007 05:44:05 +0000 (01:44 -0400)]
incompatible mrconfig file format change

The mrconfig file now uses leading whitespace to indicate values
continued to the next line.

17 years agoconfig improvements
Joey Hess [Sun, 14 Oct 2007 04:57:39 +0000 (00:57 -0400)]
config improvements

17 years agoadd ability to skip doing eg, updates, more frequently than a specified number of...
Joey Hess [Sun, 14 Oct 2007 04:52:45 +0000 (00:52 -0400)]
add ability to skip doing eg, updates, more frequently than a specified number of hours

17 years agoadd support for getting config settings
Joey Hess [Sun, 14 Oct 2007 04:09:36 +0000 (00:09 -0400)]
add support for getting config settings

17 years agomr register: default to registering the current directory
Joey Hess [Sat, 13 Oct 2007 17:24:56 +0000 (13:24 -0400)]
mr register: default to registering the current directory

17 years agouse LANG=C when parsing command output
Joey Hess [Sat, 13 Oct 2007 17:22:44 +0000 (13:22 -0400)]
use LANG=C when parsing command output

Thanks to Gabriel de Perthuis for the bug report.