Permalink
Browse files

Mirroring hg changes. License notifications everywhere. Server code i…

…s working foreals. Making 'stats' an official extension. Tightening up code everywhere I can.
  • Loading branch information...
1 parent 5aab78f commit cd3a6a82f9e051629de06d90e99dc0ae35def370 Michael Edgar committed May 5, 2010
Showing with 3,395 additions and 378 deletions.
  1. +30 −2 LICENSE
  2. +13 −15 Rakefile
  3. +1 −17 ampfile.rb
  4. +16 −0 lib/amp.rb
  5. +14 −0 lib/amp/commands/command.rb
  6. +14 −0 lib/amp/commands/command_support.rb
  7. +14 −0 lib/amp/commands/commands/config.rb
  8. +14 −0 lib/amp/commands/commands/help.rb
  9. +14 −0 lib/amp/commands/commands/init.rb
  10. +14 −0 lib/amp/commands/commands/templates.rb
  11. +14 −0 lib/amp/commands/commands/version.rb
  12. +14 −0 lib/amp/commands/commands/workflow.rb
  13. +14 −0 lib/amp/commands/commands/workflows/git/add.rb
  14. +14 −0 lib/amp/commands/commands/workflows/git/copy.rb
  15. +14 −0 lib/amp/commands/commands/workflows/git/mv.rb
  16. +14 −0 lib/amp/commands/commands/workflows/git/rm.rb
  17. +18 −7 lib/amp/commands/commands/workflows/hg/add.rb
  18. +14 −0 lib/amp/commands/commands/workflows/hg/addremove.rb
  19. +16 −0 lib/amp/commands/commands/workflows/hg/annotate.rb
  20. +14 −0 lib/amp/commands/commands/workflows/hg/archive.rb
  21. +16 −40 lib/amp/commands/commands/workflows/hg/bisect.rb
  22. +14 −0 lib/amp/commands/commands/workflows/hg/branch.rb
  23. +16 −0 lib/amp/commands/commands/workflows/hg/branches.rb
  24. +16 −0 lib/amp/commands/commands/workflows/hg/bundle.rb
  25. +16 −0 lib/amp/commands/commands/workflows/hg/clone.rb
  26. +14 −0 lib/amp/commands/commands/workflows/hg/commit.rb
  27. +14 −0 lib/amp/commands/commands/workflows/hg/copy.rb
  28. +14 −0 lib/amp/commands/commands/workflows/hg/debug/dirstate.rb
  29. +14 −0 lib/amp/commands/commands/workflows/hg/debug/index.rb
  30. +14 −0 lib/amp/commands/commands/workflows/hg/default.rb
  31. +14 −0 lib/amp/commands/commands/workflows/hg/diff.rb
  32. +14 −0 lib/amp/commands/commands/workflows/hg/forget.rb
  33. +14 −0 lib/amp/commands/commands/workflows/hg/heads.rb
  34. +14 −0 lib/amp/commands/commands/workflows/hg/identify.rb
  35. +16 −0 lib/amp/commands/commands/workflows/hg/import.rb
  36. +16 −0 lib/amp/commands/commands/workflows/hg/incoming.rb
  37. +14 −0 lib/amp/commands/commands/workflows/hg/info.rb
  38. +14 −0 lib/amp/commands/commands/workflows/hg/log.rb
  39. +14 −0 lib/amp/commands/commands/workflows/hg/manifest.rb
  40. +16 −0 lib/amp/commands/commands/workflows/hg/merge.rb
  41. +14 −0 lib/amp/commands/commands/workflows/hg/move.rb
  42. +16 −0 lib/amp/commands/commands/workflows/hg/outgoing.rb
  43. +16 −0 lib/amp/commands/commands/workflows/hg/pull.rb
  44. +16 −0 lib/amp/commands/commands/workflows/hg/push.rb
  45. +16 −0 lib/amp/commands/commands/workflows/hg/remove.rb
  46. +14 −0 lib/amp/commands/commands/workflows/hg/resolve.rb
  47. +14 −0 lib/amp/commands/commands/workflows/hg/revert.rb
  48. +14 −0 lib/amp/commands/commands/workflows/hg/root.rb
  49. +14 −0 lib/amp/commands/commands/workflows/hg/serve.rb
  50. +14 −0 lib/amp/commands/commands/workflows/hg/status.rb
  51. +16 −0 lib/amp/commands/commands/workflows/hg/tag.rb
  52. +16 −0 lib/amp/commands/commands/workflows/hg/tags.rb
  53. +14 −0 lib/amp/commands/commands/workflows/hg/tip.rb
  54. +14 −0 lib/amp/commands/commands/workflows/hg/untrack.rb
  55. +14 −0 lib/amp/commands/commands/workflows/hg/update.rb
  56. +14 −0 lib/amp/commands/commands/workflows/hg/verify.rb
  57. +16 −0 lib/amp/commands/commands/workflows/hg/view.rb
  58. +14 −0 lib/amp/commands/commands/workflows/hg/what_changed.rb
  59. +14 −0 lib/amp/commands/dispatch.rb
  60. +14 −0 lib/amp/commands/hooks.rb
  61. +14 −0 lib/amp/dependencies/amp_support/ruby_amp_support.rb
  62. +240 −0 lib/amp/dependencies/highline_extensions.rb
  63. +14 −0 lib/amp/dependencies/python_config.rb
  64. +15 −0 lib/amp/encoding/base85.rb
  65. +16 −0 lib/amp/encoding/binary_diff.rb
  66. +18 −0 lib/amp/encoding/difflib.rb
  67. +14 −0 lib/amp/extensions/ditz.rb
  68. +14 −0 lib/amp/extensions/lighthouse.rb
  69. +79 −0 lib/amp/extensions/stats.rb
  70. +16 −0 lib/amp/graphs/ancestor.rb
  71. +16 −0 lib/amp/graphs/copies.rb
  72. +14 −0 lib/amp/help/help.rb
  73. +14 −0 lib/amp/profiling_hacks.rb
  74. +14 −0 lib/amp/repository/abstract/abstract_changeset.rb
  75. +14 −0 lib/amp/repository/abstract/abstract_local_repo.rb
  76. +14 −0 lib/amp/repository/abstract/abstract_staging_area.rb
  77. +14 −0 lib/amp/repository/abstract/abstract_versioned_file.rb
  78. +14 −0 lib/amp/repository/abstract/common_methods/changeset.rb
  79. +15 −1 lib/amp/repository/abstract/common_methods/local_repo.rb
  80. +14 −0 lib/amp/repository/abstract/common_methods/staging_area.rb
  81. +14 −0 lib/amp/repository/abstract/common_methods/versioned_file.rb
  82. +14 −0 lib/amp/repository/generic_repo_picker.rb
  83. +14 −0 lib/amp/repository/git/repo_format/changeset.rb
  84. +14 −0 lib/amp/repository/git/repo_format/staging_area.rb
  85. +14 −0 lib/amp/repository/git/repo_format/versioned_file.rb
  86. +14 −0 lib/amp/repository/git/repositories/local_repository.rb
  87. +14 −0 lib/amp/repository/git/repository.rb
  88. +16 −0 lib/amp/repository/mercurial/encoding/mercurial_diff.rb
  89. +15 −0 lib/amp/repository/mercurial/encoding/patch.rb
  90. +17 −1 lib/amp/repository/mercurial/encoding/pure_ruby/ruby_mercurial_patch.rb
  91. +16 −0 lib/amp/repository/mercurial/merging/merge_ui.rb
  92. +16 −0 lib/amp/repository/mercurial/merging/simple_merge.rb
  93. +14 −0 lib/amp/repository/mercurial/repo_format/branch_manager.rb
  94. +51 −30 lib/amp/repository/mercurial/repo_format/changeset.rb
  95. +16 −0 lib/amp/repository/mercurial/repo_format/dir_state.rb
  96. +16 −0 lib/amp/repository/mercurial/repo_format/journal.rb
  97. +16 −0 lib/amp/repository/mercurial/repo_format/lock.rb
  98. +16 −0 lib/amp/repository/mercurial/repo_format/merge_state.rb
  99. +16 −0 lib/amp/repository/mercurial/repo_format/staging_area.rb
  100. +16 −0 lib/amp/repository/mercurial/repo_format/store.rb
  101. +16 −0 lib/amp/repository/mercurial/repo_format/tag_manager.rb
  102. +16 −0 lib/amp/repository/mercurial/repo_format/updatable.rb
  103. +16 −0 lib/amp/repository/mercurial/repo_format/updater.rb
  104. +16 −0 lib/amp/repository/mercurial/repo_format/verification.rb
  105. +16 −0 lib/amp/repository/mercurial/repositories/bundle_repository.rb
  106. +16 −0 lib/amp/repository/mercurial/repositories/http_repository.rb
  107. +17 −5 lib/amp/repository/mercurial/repositories/local_repository.rb
  108. +14 −2 lib/amp/repository/mercurial/repository.rb
  109. +17 −1 lib/amp/repository/mercurial/revlogs/bundle_revlogs.rb
  110. +16 −0 lib/amp/repository/mercurial/revlogs/changegroup.rb
  111. +16 −0 lib/amp/repository/mercurial/revlogs/changelog.rb
  112. +16 −13 lib/amp/repository/mercurial/revlogs/file_log.rb
  113. +16 −0 lib/amp/repository/mercurial/revlogs/index.rb
  114. +16 −0 lib/amp/repository/mercurial/revlogs/manifest.rb
  115. +14 −0 lib/amp/repository/mercurial/revlogs/node.rb
  116. +16 −2 lib/amp/repository/mercurial/revlogs/revlog.rb
  117. +17 −1 lib/amp/repository/mercurial/revlogs/revlog_support.rb
  118. +16 −0 lib/amp/repository/mercurial/revlogs/versioned_file.rb
  119. +14 −0 lib/amp/repository/repository.rb
  120. +14 −0 lib/amp/server/amp_user.rb
  121. +45 −29 lib/amp/server/extension/amp_extension.rb
  122. +14 −0 lib/amp/server/extension/authorization.rb
  123. +179 −89 lib/amp/server/fancy_http_server.rb
  124. +18 −5 lib/amp/server/fancy_views/_browser.haml
  125. +0 −6 lib/amp/server/fancy_views/_diff_file.haml
  126. +14 −0 lib/amp/server/fancy_views/_navbar.haml
  127. +20 −1 lib/amp/server/fancy_views/changeset.haml
  128. +20 −10 lib/amp/server/fancy_views/commits.haml
  129. +18 −6 lib/amp/server/fancy_views/file.haml
  130. +22 −6 lib/amp/server/fancy_views/file_diff.haml
  131. +101 −67 lib/amp/server/fancy_views/stylesheet.sass
  132. +17 −4 lib/amp/server/http_server.rb
  133. +14 −0 lib/amp/support/amp_config.rb
  134. +14 −0 lib/amp/support/amp_ui.rb
  135. +14 −0 lib/amp/support/ampfile_config.rb
  136. +14 −0 lib/amp/support/docs.rb
  137. +14 −0 lib/amp/support/generator.rb
  138. +14 −0 lib/amp/support/loaders.rb
  139. +14 −0 lib/amp/support/logger.rb
  140. +16 −0 lib/amp/support/match.rb
  141. +14 −0 lib/amp/support/mercurial/ignore.rb
  142. +14 −0 lib/amp/support/multi_io.rb
  143. +14 −0 lib/amp/support/openers.rb
  144. +14 −0 lib/amp/support/ruby_19_compatibility.rb
  145. +40 −0 lib/amp/support/statistics.rb
  146. +25 −2 lib/amp/support/support.rb
  147. +29 −2 lib/amp/templates/template.rb
  148. +14 −0 spec/command_specs/command_helper.rb
  149. +14 −0 spec/command_specs/hg_workflow/addremove_spec.rb
  150. +14 −0 spec/command_specs/hg_workflow/copy_spec.rb
  151. +14 −0 spec/command_specs/hg_workflow/root_spec.rb
  152. +14 −0 spec/command_specs/hg_workflow/tip_spec.rb
  153. +14 −0 spec/command_specs/hg_workflow/update_spec.rb
  154. +14 −0 spec/command_specs/init_spec.rb
  155. +14 −0 spec/command_specs/version_spec.rb
  156. +14 −0 spec/spec_helper.rb
  157. +14 −0 tasks/man.rake
  158. +14 −0 tasks/stats.rake
  159. +14 −0 tasks/yard.rake
  160. +14 −0 test/changelog_tests/test_changelog.rb
  161. +14 −0 test/dirstate_tests/test_dir_state.rb
  162. +14 −0 test/filelog_tests/test_filelog.rb
  163. +14 −0 test/functional_tests/test_functional.rb
  164. +2 −12 test/localrepo_tests/ampfile.rb
  165. +14 −0 test/localrepo_tests/test_local_repo.rb
  166. +14 −0 test/manifest_tests/test_manifest.rb
  167. +14 −0 test/merge_tests/test_merge.rb
  168. +14 −0 test/revlog_tests/test_revlog.rb
  169. +14 −0 test/store_tests/test_fncache_store.rb
  170. +14 −0 test/test_19_compatibility.rb
  171. +14 −0 test/test_base85.rb
  172. +14 −0 test/test_bdiff.rb
  173. +14 −0 test/test_changegroup.rb
  174. +14 −0 test/test_commands.rb
  175. +14 −1 test/test_difflib.rb
  176. +14 −0 test/test_generator.rb
  177. +14 −0 test/test_ignore.rb
  178. +14 −0 test/test_journal.rb
  179. +14 −0 test/test_match.rb
  180. +14 −0 test/test_mdiff.rb
  181. +14 −0 test/test_mpatch.rb
  182. +14 −0 test/test_multi_io.rb
  183. +14 −0 test/test_support.rb
  184. +28 −1 test/test_templates.rb
  185. +14 −0 test/test_ui.rb
  186. +14 −0 test/testutilities.rb
View
32 LICENSE
@@ -1,10 +1,22 @@
+Amp is in a bit of limbo as it directs where its license will go. We want the code to fall under
+the Ruby license. However, we didn't think about that before we looked at the Mercurial source code.
+Mercurial (as noted below) is GPLv2+, and thus any code we derived from its codebase is also GPLv2. Any
+code which then interacts with, links against, calls, etc. that derived code is also considered GPLv2.
+
+So: each file is marked with a *standalone license*. If that code were to be extracted and treated as
+one unit, it would be under the license it is marked under. Almost all files will be marked as the
+Ruby license, but some quite substantial portions will be marked as a derived work and is thus GPLv2.
+
+Our goal is to find developers to clean-room those GPLv2 parts and re-license them as the Ruby license.
+Until then, Amp as a project and distributed as one unit is licensed GPLv2.
+
This project includes a large amount of source code from a number of different resources.
They are listed, in no particular order, along with the license ascribed to the code
associated with it.
1. Mercurial (GPLv2)
A large number of algorithms in Amp are inspired by, or in some cases, direct translations,
- of code in the Mercurial source. This makes this our code a derivative work, and thus GPLv2.
+ of code in the Mercurial source. This makes this that code a derivative work, and thus GPLv2.
2. BZ2 (Ruby License) - Guy Decoux
This code has been copied verbatim into our repository.
@@ -37,4 +49,20 @@ associated with it.
5. Minitar - Copyright 2004 Mauricio Julio Fernández Pradier and Austin Ziegler
This code has been copied verbatim into our repository.
- "This program is free software. It may be redistributed and/or modified under the terms of the GPL version 2 (or later) or Ruby’s licence. " -- http://raa.ruby-lang.org/project/minitar/
+ "This program is free software. It may be redistributed and/or modified under the terms of the GPL version 2 (or later) or Ruby’s licence. " -- http://raa.ruby-lang.org/project/minitar/
+
+6. Difflib - this library from Python's standard library has been directly ported to Ruby.
+ It falls under the PSF license, which allows redistribution under a license of our choice. We
+ choose to redistribute it under the Ruby License.
+
+7. HighLine - this library provides some cross-platform terminal methods. The license is included below.
+
+"= License Terms
+
+Distributed under the user's choice of the {GPL Version 2}[http://www.gnu.org/licenses/old-licenses/gpl-2.0.html] (see COPYING for details) or the
+{Ruby software license}[http://www.ruby-lang.org/en/LICENSE.txt] by
+James Edward Gray II and Greg Brown.
+
+Please email James[mailto:james@grayproductions.net] with any questions."
+
+ We choose to use HighLine's code under the Ruby License.
View
@@ -1,4 +1,17 @@
# -*- ruby -*-
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
require 'rake'
require 'rake/tasklib'
@@ -85,21 +98,6 @@ task :prepare do
`tar -C test/localrepo_tests/ -xzf test/localrepo_tests/testrepo.tar.gz`
end
-# liberally modified from Hoe's
-# desc 'Test the amp AWESOMENESS.'
-# task :test do
-# framework = "test/unit"
-# test_globs = ['test/**/test_*.rb']
-# ruby_flags = ENV['RUBY_FLAGS'] || "-w -I#{%w(lib ext bin test).join(File::PATH_SEPARATOR)}" +
-# (ENV['RUBY_DEBUG'] ? " #{ENV['RUBY_DEBUG']}" : '')
-# tests = [ framework] +
-# test_globs.map { |g| Dir.glob(g) }.flatten
-# tests.map! {|f| %(require "#{f}")}
-# cmd = "#{ruby_flags} -e '$amp_testing = true; #{tests.join("; ")}' "
-#
-# ruby cmd
-# end
-
desc "Compile Site"
task :"build-website" do
require 'site/src/helpers.rb'
View
@@ -1,3 +1,4 @@
+require 'amp/extensions/stats'
# need { 'lib/amp/extensions/ditz' }
# need { 'lib/amp/extensions/lighthouse' }
@@ -20,23 +21,6 @@
<%= change_node.hexlify %> <%= revision %>
EOF
-command "stats" do |c|
- c.workflow :hg
- c.desc "Prints how many commits each user has contributed"
- c.on_run do |opts, args|
- repo = opts[:repository]
- users = Hash.new {|h, k| h[k] = 0}
- repo.each do |changeset|
- users[changeset.user.split("@").first] += 1 #
- end
- users.to_a.sort {|a,b| b[1] <=> a[1]}.each do |u,c|
- puts "#{u}: #{c}"
- end
- end
-end
-
-# bisect_command
-
namespace :docs do
command "gen" do |c|
View
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
module Amp; end
# The root directory of this application
Amp::CODE_ROOT = File.expand_path File.dirname(__FILE__)
@@ -36,6 +50,7 @@ module Amp
autoload :Match, "amp/support/match.rb"
autoload :AmpConfig, "amp/support/amp_config.rb"
autoload :UI, "amp/support/amp_ui.rb"
+ autoload :Statistics, "amp/support/statistics.rb"
module Git
autoload :Changeset, "amp/repository/git/repo_format/changeset.rb"
@@ -196,6 +211,7 @@ module Sinatra
require "amp/dependencies/amp_support.rb"
require "amp/support/ruby_19_compatibility.rb"
require "amp/support/support.rb"
+require "amp/dependencies/highline_extensions.rb"
require "amp/templates/template.rb"
require "amp/repository/mercurial/repository.rb" # we're just loading in
require 'amp/repository/git/repository.rb' # all of the base repositories
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
require 'amp/commands/command_support.rb'
module Amp
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
module Amp
module CommandSupport
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
command :config do |c|
c.workflow :all
c.desc "Configure amp interactively."
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
command :help do |c|
c.workflow :all
c.desc "Prints the help for the program."
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
command :init do |c|
c.workflow :all
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
# Create an anonymous module so that the extra methods in the templates aren't
# entered into the global namespace
#
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
command :version do |c|
c.workflow :all
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
command :workflow do |c|
c.workflow :all
c.maybe_repo
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
command :add do |c|
c.workflow :git
c.desc "Add a file to the repository (it will be tracked from here on)"
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
command :copy do |c|
c.workflow :git
c.desc "Copies a file from one location to another, while maintaining history"
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
command :mv do |c|
c.workflow :git
c.desc "Moves a file from one place to another"
@@ -1,3 +1,17 @@
+##################################################################
+# Licensing Information #
+# #
+# The following code is licensed, as standalone code, under #
+# the Ruby License, unless otherwise directed within the code. #
+# #
+# For information on the license of this code when distributed #
+# with and used in conjunction with the other modules in the #
+# Amp project, please see the root-level LICENSE file. #
+# #
+# © Michael J. Edgar and Ari Brown, 2009-2010 #
+# #
+##################################################################
+
command :rm do |c|
c.workflow :git
c.desc "Removes files from the repository on next commit"
Oops, something went wrong.

0 comments on commit cd3a6a8

Please sign in to comment.