Commit Graph

110 Commits

Author SHA256 Message Date
Jan Blunck
a83943a07a Accepting request 254698 from home:aspiers:branches:openSUSE:Tools
- Update to version 0.5.0.1412769870.6cda976:
  + change default git versionformat to %ct.%h
  + fix changes generation when version is blank
  + lots of refactoring
  + add info and caveats about data persisting between tests
  + gittests: give default author test a unique name

OBS-URL: https://build.opensuse.org/request/show/254698
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=82
2014-10-08 20:57:16 +00:00
Jan Blunck
a179ff0521 Accepting request 254007 from home:aspiers:branches:openSUSE:Tools
lxml is required to pass tests on older Pythons

There still seems to be one remaining submodule issue, but
this is a step in the right direction.

OBS-URL: https://build.opensuse.org/request/show/254007
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=80
2014-10-05 12:59:16 +00:00
Jan Blunck
fd9750d920 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=79 2014-10-05 11:45:38 +00:00
Jan Blunck
a7b3949ccd Accepting request 253975 from home:aspiers:branches:openSUSE:Tools
- Update to version 0.4.2.1412467141.df3329e.  Many changes,
  including:
  + Retrieve tags for a cached git repo
  + Add PEP8 checking everywhere
  + Significantly improved tests
  + Fixed checkout of a hg url that ends with a trailing slash
  + Fix Debian build dependencies for python
  + Change Debian package format to 3.0 (native)
  + Install into /usr on Debian
  + Honor submodules=disable as before (fixes #38)
  + Fix directory name of repository clone
  + Fix handling of symbolic links
  + Fix crash when changesrevision <param> is missing
  + Improved usage text
  + Store git and hg hashes in full
  + Fix crash during copy of _servicedata
  + Fix format of new changes to match old shell tar_scm
  + Fix bug when temp file is on a different filesystem
  + Fix change generation bug introduced by Python rewrite
  + Fix retrieval of email address from ~/.oscrc
  + Refactor changesgenerate code

OBS-URL: https://build.opensuse.org/request/show/253975
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=78
2014-10-05 11:44:20 +00:00
Jan Blunck
b3935019ee Accepting request 248284 from home:jblunck:branches:openSUSE:Tools
Update to tar_scm 0.4.0

OBS-URL: https://build.opensuse.org/request/show/248284
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=76
2014-09-10 09:57:14 +00:00
Stephan Kulow
de89a48114 Accepting request 243896 from home:roman-neuhauser:branches:openSUSE:Tools
OBS-URL: https://build.opensuse.org/request/show/243896
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=75
2014-08-08 09:13:27 +00:00
e8070cae24 Accepting request 239987 from home:jblunck:branches:openSUSE:Tools
- Update to version 0.3.2.1404723797.745a470:
  + Initial debianization
  + switch git submodule versions correctly
  + add some basic documentation to the tests
  + split off info into TESTING.md
  + add CONTRIBUTING.md
  + improve formatting
  + whitelist accepted chars in arguments.
  + Correct/update install information
  + Reverse changes lines again with tac

OBS-URL: https://build.opensuse.org/request/show/239987
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=73
2014-07-10 15:36:40 +00:00
2a6014ee75 Accepting request 210486 from home:saschpe:branches:openSUSE:Tools
- Update to version 0.3.2.1386694317.b85b342:
  + Fix adding to already existing _servicedata case
  + Don't reverse changes lines with 'tac'
  + Fix Python FutureWarning about comparison with None
  + Improve description of the versionformat parameter.
- Enable changes generation

OBS-URL: https://build.opensuse.org/request/show/210486
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=70
2013-12-12 19:39:41 +00:00
28fd31e86b update
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=68
2013-11-19 10:17:06 +00:00
a384987bd2 right fix
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=65
2013-10-30 14:58:58 +00:00
70040c2763 ups
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=64
2013-10-30 14:03:24 +00:00
c2bfe70067 urgs
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=63
2013-10-30 14:02:34 +00:00
Tomáš Chvátal
6fea8eb8cc Accepting request 185667 from home:aspiers:branches:openSUSE:Tools
- Bump version to 0.3.0 and include git timestamp / SHA1 in version.
- Update to latest git (9de0986):
  + add git submodule update test
  + extract submodule_path() method
  + allow git commands to run from cwd
  + rename opts to args
  + annotate cwd
  + ensure all scm invocations succeed when expected
  + record revisions per repository path
  + allow creation of git submodules
  + Fixtures.create_commits(): add repository path parameter
  + GitFixtures.create_repo(): add repository path parameter
  + fix hg tests when run in timezone east of UTC
  + add hint about running tests quicker
  + don't hardcode revision in helper method
  + quoting tweak
  + make test output more consistent
  + get line spacing right
  + Travis: also test with Python 2.6
  + tweak debugging for mv invocations
  + a bit more info on the test suite
  + leave temporary files behind on failure, for debugging
  + add some docstrings to a few of the more complex tests
  + make switching to a given git revision more robust
  + try to make test output a little easier to understand
  + improve README.md
  + switch README to markdown and add Travis build status icon
  + replace XML entities with dollar-curlies
  + Properly encode XML reserved entities (&,<,>)
  + add better revision description/documentation for git
  + We are still not allowed to have dashes inside version. Fix for mercurial.
  + allow-different-naming-schemes-for-resulting-tar-files
  + Fix breakage when LANG is not English (issue #8)
  + Make test.py executable
  + README: add information about the test suite
  + Don't rely on git error codes for "git describe", catch all
  + Better error handling for @PARENT_TAG@ expansion
  + the correct tag is 'param', 'parameter' won't work
  + Tell Travis where to find the tests
  + Cleanup testing tmp_dir afterwards
  + Add description for @PARENT_TAG@
  + Ignore .coverage
  + Move tests into sub-directory
  + Last change for some bonus points
  + Naa, typo
  + Update package database before installing dependencies
  + Add initial Travis-CI configuration
  + Add .gitignore file
  + Add test for @PARENT_TAG@

OBS-URL: https://build.opensuse.org/request/show/185667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=61
2013-08-07 08:07:13 +00:00
30038b6818 Accepting request 144033 from home:saschpe:branches:openSUSE:Tools
- Pass --tags to "git describe" for @PARENT_TAG@

OBS-URL: https://build.opensuse.org/request/show/144033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=58
2012-12-04 16:14:26 +00:00
bdfe6c815b Accepting request 143967 from home:saschpe:branches:openSUSE:Tools
- Disable testsuite on SLE_11_SP2 to fix build

OBS-URL: https://build.opensuse.org/request/show/143967
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=57
2012-12-04 09:31:19 +00:00
9856f5b66c Accepting request 143961 from home:saschpe:branches:openSUSE:Tools
- Use upstream github repository and download via _service file

- Add custom git versionformat extensions:
  + @PARENT_TAG@: Replaced by first tag that is reachable from the
                  current commit (see 'git describe')
  Future custom additions could follow the @NAME@ scheme

OBS-URL: https://build.opensuse.org/request/show/143961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=56
2012-12-03 15:29:20 +00:00
Stephan Kulow
64258315e2 Accepting request 139926 from home:aspiers:branches:openSUSE:Tools
- Fix usage text for submodules option

OBS-URL: https://build.opensuse.org/request/show/139926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=54
2012-11-02 06:29:18 +00:00
Stephan Kulow
c135514295 Accepting request 136480 from home:cthiel1:branches:openSUSE:Tools
- change default versionformat from author date (%at) to commiter date (%ct)
  for git, to fix issues with cherry-picked commits resulting in decreased
  version

OBS-URL: https://build.opensuse.org/request/show/136480
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=52
2012-10-03 16:41:45 +00:00
Stephan Kulow
191fa2c9b3 Accepting request 135648 from home:jirislaby:branches:openSUSE:Tools
add support of "20120916" as versions in git

OBS-URL: https://build.opensuse.org/request/show/135648
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=50
2012-09-26 07:30:30 +00:00
86c7651c97 Accepting request 129093 from home:aspiers:branches:openSUSE:Tools
- Prevent local users from appearing as user/group owner in
  generated tar files (thanks bmwiedemann for this)

OBS-URL: https://build.opensuse.org/request/show/129093
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=48
2012-07-27 12:35:32 +00:00
66094849a2 fix submodule option
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=47
2012-07-03 11:24:32 +00:00
8f193b5de7 Accepting request 126712 from home:magist3r:branches:openSUSE:Tools
I tested some github repos without submodules and script works well for me. Anyway, I added an option to disable submodule update. And one question: If my request will be accepted, how fast these changes will be present in b.o.org?

OBS-URL: https://build.opensuse.org/request/show/126712
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=46
2012-07-03 11:20:18 +00:00
Stephan Kulow
8c90385e6c Accepting request 123669 from home:saschpe:branches:openSUSE:Tools
- Re-iterating the last change once again, 'git rev-parse --verify $REV'
  will return false even if $REV is a normal branch upon first clone
  of the repo. Thus 'git fetch $URL +$REV:$REV" is run initially. 
  However, the 'git checkout $REV' then fails because it's missing 
  tracking information. Therefore, try a normal checkout first and fetch
  the specific $REV only when that fails (due to reasons described below).

OBS-URL: https://build.opensuse.org/request/show/123669
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=44
2012-06-06 11:30:37 +00:00
b4f8383f49 Accepting request 122007 from home:rohanpm:branches:openSUSE:Tools
Allow git revision to refer to revs not available from default clone/fetch

Previously, the "revision" parameter must be something reachable after
doing a default "git clone".  Remove this limitation.

A primary use-case is to integrate OBS with the gerrit code review tool,
which stores changes under review in "refs/changes/...".  Without this
change, such refs can't be retrieved by the tar_scm service.

OBS-URL: https://build.opensuse.org/request/show/122007
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=42
2012-05-24 07:13:31 +00:00
d84fe477d4 Accepting request 109952 from home:aspiers:branches:openSUSE:Tools
- Check that git pull succeeds

OBS-URL: https://build.opensuse.org/request/show/109952
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=40
2012-03-19 14:07:00 +00:00
cc7bede0ec Accepting request 107598 from home:aspiers:branches:openSUSE:Tools
- Remove accidental reference to keep-source parameter
  which was never pushed upstream (obsoleted by new cache).

OBS-URL: https://build.opensuse.org/request/show/107598
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=38
2012-03-01 08:06:11 +00:00
7347c37d64 fix validation
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=36
2012-02-16 16:16:22 +00:00
29faf4a1e7 Accepting request 105521 from home:aspiers:branches:openSUSE:Tools
- When the cache is used, output location of repo in the cache

OBS-URL: https://build.opensuse.org/request/show/105521
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=34
2012-02-16 16:12:20 +00:00
6e55d7df19 Accepting request 105386 from home:aspiers:branches:openSUSE:Tools
- add new 'versionformat' option to determine how version is
  extracted via git show --pretty=... (and similar for svn /
  hg / bzr)
- support caching of cloned repositories to speed up fetch
  from upstream
- use mktemp -u because git/hg refuse to clone into an empty 
  directory on SLES11

OBS-URL: https://build.opensuse.org/request/show/105386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=33
2012-02-16 11:06:33 +00:00
e7fbd5920f Accepting request 105040 from home:aspiers:branches:openSUSE:Tools
Mon Feb  13 15:52:19 GMT 2012 - aspiers@suse.com
Add test suite and fix two bugs it found:

  1. --subdir was not working
  2. --scm bzr was not working

FWIW it also works on SLE11 now.

I will issue a separate request for my enhancements to
tar_scm, since they are much more intrusive (but have
about 90% test coverage).

OBS-URL: https://build.opensuse.org/request/show/105040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=32
2012-02-15 16:34:15 +00:00
81a2059b9f Accepting request 104431 from devel:openSUSE:Factory:patch-license
patch license to follow spdx.org standard

OBS-URL: https://build.opensuse.org/request/show/104431
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=31
2012-02-14 08:38:12 +00:00
4aab52391d Accepting request 101436 from home:schiele:branches:openSUSE:Tools
add new option to specify a subset of files/subdirectories to pack in the tar ball

OBS-URL: https://build.opensuse.org/request/show/101436
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=30
2012-01-25 08:48:25 +00:00
e24f0c5562 Accepting request 101344 from home:schiele:branches:openSUSE:Tools
Checking out a specific revision cannot work when only the latest version is cloned.

OBS-URL: https://build.opensuse.org/request/show/101344
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=29
2012-01-24 14:58:40 +00:00
8513bd36d0 Accepting request 98423 from home:dgollub:branches:openSUSE:Tools
- make svn checkout --trust-server-cert option conditional, since
  this option is not supported by versions prior to subversion 1.6.

- Trim user prefix from tarball filename.
  This enables tar_scm service to be used with git and ssh transport
  (in conjuction with a passphrase less ssh-pubkey). Example Git URL:
  git@gitrepo.tld:foobar.git

- git 1.6.x and very likely other version only support
  "show --pretty=format:%at" as parameter with "format:" prefix.
  git show --pretty=%at is also support by recent git versions.

OBS-URL: https://build.opensuse.org/request/show/98423
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=27
2012-01-03 07:34:00 +00:00
a9df595726 add help
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=26
2011-08-29 07:17:52 +00:00
d2b9050ffe add non-versioned tar ball support
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=25
2011-08-29 07:04:54 +00:00
b6753f4717 fix same-version mechanism
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=24
2011-08-26 07:52:40 +00:00
00917f3eef support old tar bar lookup also for OBS 2.3 bs_service using .old/ directory
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=23
2011-08-26 06:49:49 +00:00
b7cffa8bf1 link old tar ball into result directory when no new commit appeared
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=22
2011-08-26 06:45:56 +00:00
2fbc97d24c Accepting request 79803 from home:marquiz:branches:openSUSE:Tools
- history-depth parameter: use hackish depth=999999999 if "full" is
  given so that a shallow clone will be fully deepened if the
  _service file is changed. Also, fix git clone cmd line (remove
  a pair of quotes that cause problems).

OBS-URL: https://build.opensuse.org/request/show/79803
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=21
2011-08-25 19:16:23 +00:00
6a8b18a2fd add checkout depth parameter, based on work of Markus Lehtonen <markus.lehtonen@linux.intel.com>
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=20
2011-08-25 13:52:49 +00:00
c19f265b65 sync parameter
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=19
2011-08-17 12:47:54 +00:00
0fed603d32 make meta data optional
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=18
2011-08-17 07:56:56 +00:00
Sascha Peilicke
0e69e56522 Accepting request 78644 from openSUSE:Tools
fix exclude expansion

OBS-URL: https://build.opensuse.org/request/show/78644
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/obs-service-tar_scm?expand=0&rev=1
2011-08-12 14:46:41 +00:00
17be28e649 fix exclude expansion
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=16
2011-08-12 11:51:34 +00:00
6b9dfe95ee Accepting request 74156 from home:cthiel1:branches:openSUSE:Tools
- add support for bzr

OBS-URL: https://build.opensuse.org/request/show/74156
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=15
2011-06-29 06:16:32 +00:00
932f419e54 fix quoting
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=14
2011-03-31 13:58:05 +00:00
61a722e069 Accepting request 65121 from home:ammler:branches:openSUSE:Tools
thanks

OBS-URL: https://build.opensuse.org/request/show/65121
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=13
2011-03-25 07:35:21 +00:00
529653743c Accepting request 64868 from home:ammler:branches:openSUSE:Tools
thanks

OBS-URL: https://build.opensuse.org/request/show/64868
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=12
2011-03-22 16:29:46 +00:00
d9ba034cba fix
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=11
2011-02-10 22:31:57 +00:00