ALT Linux Team development discussions
 help / color / mirror / Atom feed
* Re: [devel] [SCM] packages/gear: heads/gear-update-tag
  @ 2008-06-24 16:19 ` Dmitry V. Levin
  2008-06-24 17:05   ` Alexey I. Froloff
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry V. Levin @ 2008-06-24 16:19 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 1393 bytes --]

On Sun, Jun 22, 2008 at 11:20:27PM +0400, Alexey Gladkov wrote:
> Update of /people/legion/packages/gear.git
> 
> Changes statistics since `1.4.0-alt1-30-ga9a2ddf' follows:
>  gear |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> Changelog since `1.4.0-alt1-30-ga9a2ddf' follows:
> commit 24b6bc869c335fb84b5f56ef36c85b8b1e0a68c3
> Author: Alexey Gladkov <legion@altlinux.org>
> Date:   Sun Jun 22 23:19:52 2008 +0400
> 
>     gear: Check list of stored tags and show warning message
>     
>     Requested-by: Alexey I. Froloff <raorn@altlinux.org>
>     Signed-off-by: Alexey Gladkov <legion@altlinux.org>
> 
> Full diff since `1.4.0-alt1-30-ga9a2ddf' follows:
> diff --git a/gear b/gear
> index 6fd5297..9713685 100755
> --- a/gear
> +++ b/gear
> @@ -711,6 +711,12 @@ GIT_OBJECT_DIRECTORY="$tmpdir/objects"
>  export GIT_OBJECT_DIRECTORY
>  
>  find_tags_in_tree
> +
> +if [ -s "$tag_dir/list" -a "$main_tree_id" = 'HEAD' ]; then
> +	gear-update-tag $verbose $quiet --verify ||
> +		message "WARNING: List of stored tags could be outdated. Please, update list by \`gear-update-tag --all'"
> +fi
> +

Дело в том, что gear, за исключением режима --update-spec, работает только
с репозиторием, и вообще не имеет дело с другими файлами (не считая временных).
А gear-update-tag, наоборот, читает и пишет в рабочий каталог.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] [SCM] packages/gear: heads/gear-update-tag
  2008-06-24 16:19 ` [devel] [SCM] packages/gear: heads/gear-update-tag Dmitry V. Levin
@ 2008-06-24 17:05   ` Alexey I. Froloff
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey I. Froloff @ 2008-06-24 17:05 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

* Dmitry V. Levin <ldv@> [080624 20:21]:
> > +if [ -s "$tag_dir/list" -a "$main_tree_id" = 'HEAD' ]; then
> Дело в том, что gear, за исключением режима --update-spec, работает только
> с репозиторием, и вообще не имеет дело с другими файлами (не считая временных).
> А gear-update-tag, наоборот, читает и пишет в рабочий каталог.
При такой проверке ему можно давать -t "$main_tree_id".  Это
просто напоминание мантейнеру "а не забыл ли ты обновить теги?".
Можно ещё дополнительно проверять не дали ли gear опцию --commit.

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-24 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-24 16:19 ` [devel] [SCM] packages/gear: heads/gear-update-tag Dmitry V. Levin
2008-06-24 17:05   ` Alexey I. Froloff

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git