[GHC] #8369: Small improvements to ./sync-all

#8369: Small improvements to ./sync-all ------------------------------------+------------------------------------- Reporter: nwf | Owner: Type: bug | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- ./sync-all get in a local clone does not use local submodules. That is, if I {{{ git clone ghc ghc-tmp; cd ghc-tmp; ./sync-all get }}} the contained clones come over just fine from ghc/... into ghc-tmp/..., but the submodules are fetched over the network connection. I think the attached patch brings the "fetch from the clone source if possible" behavior over to submodules, though possibly not in an ideal way. Separately, I find that I want to run shell commands in each repository; adding a "shell" verb is trivial and a second patch is attached. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8369 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8369: Small improvements to ./sync-all -------------------------------------+------------------------------------ Reporter: nwf | Owner: Type: bug | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by leroux): Usually what I do to achieve this is {{{ git clone ghc ghc-clone ./sync-all -r $LOCAL remote set-url origin ./sync-all --testsuite --nofib get ./sync-all -r https://github.com/ghc remote set-url origin ./sync-all -r $LOCAL remote add working ./sync-all checkout master ./sync-all checkout ghc-head # probably not right, but attached submodules to their "correct" branch. }}} Here's the script I use: https://gist.github.com/leroux/6735171 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8369#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8369: Small improvements to ./sync-all -------------------------------------+------------------------------------ Reporter: nwf | Owner: Type: bug | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by leroux): Nevermind, I was mistaken. This is great! =) If it's ready to be merged in, go ahead and change it to patch. (I haven't tested yet) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8369#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8369: Small improvements to ./sync-all
-------------------------------------+------------------------------------
Reporter: nwf | Owner:
Type: bug | Status: new
Priority: lowest | Milestone:
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Herbert Valerio Riedel

#8369: Small improvements to ./sync-all -------------------------------------+------------------------------------ Reporter: nwf | Owner: hvr Type: bug | Status: new Priority: lowest | Milestone: Component: Trac & Git | Version: 7.7 Resolution: | Keywords: sync-all Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by hvr): * keywords: => sync-all * owner: => hvr * component: Compiler => Trac & Git -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8369#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8369: Small improvements to ./sync-all -------------------------------------+------------------------------------ Reporter: nwf | Owner: hvr Type: bug | Status: new Priority: lowest | Milestone: Component: Trac & Git | Version: 7.7 Resolution: | Keywords: sync-all Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by thomie): Can this ticket be closed? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8369#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8369: Small improvements to ./sync-all -------------------------------------+------------------------------------- Reporter: nwf | Owner: hvr Type: bug | Status: closed Priority: lowest | Milestone: Component: Trac & Git | Version: 7.7 Resolution: fixed | Keywords: sync-all Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => fixed Comment: '''Note''': since all [wiki:Repositories repositories] have been turned into git submodules, you normally don't need `sync-all` anymore. See [WorkingConventions/Git git working conventions] and [WorkingConventions/Git/Submodules git submodules] for the new submodule workflow. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8369#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC