Xu Cheng
a88c40b8c8
core file style update
2015-08-22 13:15:33 +08:00
Xu Cheng
62d1636144
update: only update renamed when necessary
2015-08-20 20:12:02 +08:00
Vlad Shablinsky
e4480cf6bf
update: add formula renames to report
2015-08-20 19:55:35 +08:00
Baptiste Fontaine
8ba0fb9fcf
unnecessary calls to .select simplified
...
These are minor perf optimizations.
Closes Homebrew/homebrew#43028 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-18 00:18:22 +02:00
Xu Cheng
3c45e1e81d
update: only compute tapd_basename when necessary
2015-08-15 18:32:22 +08:00
Vlad Shablinsky
f88f2b7054
update tabs only if core formula installed
...
Closes Homebrew/homebrew#42745 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-10 16:09:26 +01:00
Vlad Shablinsky
0b854adbf4
update: fix load_tap_migrations
2015-08-10 16:09:26 +01:00
Vlad Shablinsky
6b0927944a
update: handle renames on update
2015-08-10 13:57:59 +01:00
Xu Cheng
3c8a19777d
update: handle more exceptions
...
Closes Homebrew/homebrew#42558 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-07 13:42:31 +08:00
Xu Cheng
09e0bcf1fc
update: loading core files at the beginning
...
This should help to prevent similar situation of Homebrew/homebrew#42553 happening in the
future.
2015-08-06 22:51:36 +08:00
BrewTestBot
13d544e11e
Core files style updates.
...
Closes Homebrew/homebrew#42354 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Xu Cheng
a9b9c5ade7
Tap: allow enumerate non-git taps
...
Also add a `Tap#git?` method to indicate whether the tap is a git
repository.
Closes Homebrew/homebrew#42264 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-30 21:28:52 +08:00
Mike McQuaid
151890148c
update: fix --rebase
2015-07-09 23:50:55 +01:00
Mike McQuaid
b11ae2abdc
update: stash save/pop uncommitted changes.
...
Also:
- return to your previous branch after `brew update`.
Closes Homebrew/homebrew#38568 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-09 12:33:31 +01:00
Xu Cheng
44383fecb8
(un)tap/update/readall: use Tap class
2015-06-11 15:28:29 +08:00
Xu Cheng
023230cb6a
update: only display version changed formulae
...
Closes Homebrew/homebrew#40090 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-02 17:24:05 +08:00
Jack Nagel
efd52da101
Remove dead code
2015-05-27 21:57:41 -04:00
Xu Cheng
171c3dd2d9
tap/untap/update/prune: remove obsolete method, add migrate_taps
2015-05-27 13:53:40 +08:00
Jack Nagel
fef8b0871d
Remove obsolete nil guard
...
This was added in 3a7a3619f7016c75c3e53e944221bf7f6354a63b to make the
tests pass, but this method is now stubbed out in the tests, so we can
assume $? will be non-nil.
2014-09-18 21:56:48 -05:00
Jack Nagel
56dd575f96
Pass command and arg list into ErrorDuringExecution constructor
2014-09-18 20:32:50 -05:00
Jack Nagel
f40650ecd0
Set the remote config manually
...
See 5cd6b35 and 8eefd4e.
2014-08-12 01:46:12 -05:00
Jack Nagel
b160cc9bb6
Handle tap file renames that remove a file from the formula directory
2014-07-31 15:58:03 -05:00
Jack Nagel
87850d00cd
Remove obsolete hacks from updater report
2014-07-26 20:11:53 -05:00
Jack Nagel
2b90995c3e
Only populate the report with formula paths
2014-07-26 20:11:53 -05:00
Jack Nagel
197a12c900
Switch from backticks to Utils.popen_read
2014-07-26 20:11:53 -05:00
Jack Nagel
802775078c
Separate reading and parsing the diff
2014-07-26 20:11:53 -05:00
Jack Nagel
6baf357f8c
update: remove unused rename detection
...
Right now this code only produces false positives. When we have real
support for renames, we can implement it more carefully.
Closes Homebrew/homebrew#31126 .
2014-07-25 12:28:05 -05:00
Jack Nagel
2cf116464d
update: simplify diff parsing
2014-07-25 12:25:58 -05:00
Jack Nagel
44254aa9cf
Remove redundant "which git" guards
...
There is always a git executable on PATH due to the git wrapper in
Library/Contributions/cmd. The wrapper will notify the user if there is
not a real git installed.
2014-07-06 14:10:52 -05:00
Jack Nagel
2d83c08592
Make tap_ref match similar code in update
2014-07-06 13:12:01 -05:00
Jack Nagel
f8fb74ff76
Escape paths in regexps
2014-07-06 11:25:56 -05:00
Jack Nagel
7cd31377a4
Convert update report to use composition
2014-06-27 21:58:15 -05:00
Jack Nagel
346fa5098f
Simplify valid_formula_location? method
2014-06-27 21:58:15 -05:00
Jack Nagel
3dbcba0c03
Call original backtick using super
2014-06-23 18:50:55 -05:00
Jack Nagel
8d12684efe
Pass repository path into the updater
2014-06-23 18:41:50 -05:00
Jack Nagel
f0e13ee97b
Use multiple argument form of system
2014-06-20 18:37:24 -05:00
Jack Nagel
10a1952d2c
Only "extend self" once on the Homebrew module
2014-06-19 13:10:36 -05:00
Jack Nagel
bf365fc23b
Prefer Dir.glob when iterating over the result
2014-05-31 23:53:36 -05:00
Tsukasa OMOTO
d1f15e967b
Taps: cleanup regexps around Taps
...
Closes Homebrew/homebrew#29139 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-14 11:12:51 -05:00
Jack Nagel
d8c15c8fbf
The \w character class already includes underscore
...
Newer versions of Ruby issue a warning for repeated character classes.
2014-05-03 15:03:22 -05:00
Jack Nagel
b40a3413e3
Pass around only absolute paths when dealing with taps
2014-04-25 18:36:31 -05:00
Jack Nagel
a0494441d3
Build relative paths using resolved_path and relative_path_from
2014-04-25 12:34:37 -05:00
Jack Nagel
9b60c1470a
Less code in begin clause
2014-04-25 12:34:28 -05:00
Jack Nagel
b0cd6b0376
Extract some boilerplate into an each_tap method
2014-04-25 11:25:38 -05:00
Tsukasa OMOTO
54004a4759
Make the on-disk representation of taps unambiguous
...
This commit supports "-" and "_" in names of user and repository.
Closes Homebrew/homebrew#28203 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-24 17:10:41 -05:00
Mike McQuaid
4dd6f0cb4c
install, update: AlreadyTappedError never raised.
2014-01-03 21:57:06 +00:00
Mike McQuaid
228a5a545a
update: rewrite origin to point to Homebrew org.
2013-12-14 23:10:20 +00:00
Jack Nagel
6c04ccfb3b
Remove unused variables
2013-12-12 15:42:35 -06:00
Jack Nagel
6071e3b54c
Fix tap migrations
...
When a `brew update` pulls down additions to tap_migrations.rb and the
removed formulae in the same update, the migrations will never run,
because tap_migrations.rb is loaded before the update takes place. Fix
this by loading it after the update.
2013-12-02 16:22:40 -06:00
Jack Nagel
f42c7f1cc3
update: add remaining status indicators to diff-tree regexp
...
As I understand it, we should never encounter these, but...
2013-11-14 09:52:33 -06:00