Comments (17)
Hmm, you actually are supposed to be able to run sync.pl repeatedly. Which VCS
are you using? I'll look into it.
Original comment by [email protected]
on 9 Oct 2010 at 4:50
from bugzilla-vcs.
I'm using BZR - I ran it once against a trunk, and then again and it added the
same change note twice.
Original comment by [email protected]
on 9 Oct 2010 at 9:52
from bugzilla-vcs.
To be precise, I ran it against a single tree, as in:
/bzr/project1
which has branches below it:
/bzr/project1/trunk
/bzr/project1/version2
and so on.
Then I ran it against
/bzr/
which has additional projects (project2, etc) setup in a similar manner.
Afterwards, I noted that a patch for project1 was shown twice in the
appropriate bug.
Original comment by [email protected]
on 11 Oct 2010 at 4:04
from bugzilla-vcs.
In fact, I just found one bug that has 4 identical commits on it:
Commits:
1896 by Bill <et> at 2010-08-09 09:07:10 PDT
1896 by Bill <et> at 2010-08-09 09:07:10 PDT
1896 by Bill <et> at 2010-08-09 09:07:10 PDT
1896 by Bill <et> at 2010-08-09 09:07:10 PDT
Original comment by [email protected]
on 11 Oct 2010 at 5:49
from bugzilla-vcs.
I'm not sure how the internals of this work, but if I were to truncate the
tables used by vcs and rerun the script, would it clear this up? Or is there a
given table to truncate?
Original comment by [email protected]
on 11 Oct 2010 at 7:48
from bugzilla-vcs.
Ah ha.
The --repo argument to sync.pl must never change. Otherwise you will indeed get
duplicates. It's just the --project argument that can change.
Yes, you can truncate both tables starting with "vcs_*".
Original comment by [email protected]
on 12 Oct 2010 at 5:02
from bugzilla-vcs.
Excellent, truncating the tables and rerunning the sync script seems to have
worked.
Does the script have to be run from the bugzilla directory or can I call it
from anywhere?
Original comment by [email protected]
on 12 Oct 2010 at 6:21
from bugzilla-vcs.
sync.pl does have to be run from the Bugzilla directory.
I'll keep this bug open because I may still want to have a way to assure that a
single "project URL plus commit" doesn't get duplicated.
Original comment by [email protected]
on 12 Oct 2010 at 9:12
- Added labels: Priority-Low
- Removed labels: Priority-Medium
from bugzilla-vcs.
Hmmm. It still seems to be adding multiple copies - I've run it a few times,
exactly the same each time, and I see the same number added.
Oh wait, I see what it's doing! I have multiple branches - such as:
project/trunk
project/branch1
project/branch2
and the bug was fixed in trunk before it was branched, so it sees it as "fixed"
in all three branches and reports it for each one.
Original comment by [email protected]
on 13 Oct 2010 at 3:29
from bugzilla-vcs.
Ahhh, ah ha! Sounds like I need to keep track of the revid of each revision and
make sure that I don't duplicate them within the same repository.
Original comment by [email protected]
on 13 Oct 2010 at 9:48
from bugzilla-vcs.
Okay, I'm going to release a new version of VCI that contains the features that
I need for this, and then I'll update this extension to use them.
Original comment by [email protected]
on 16 Oct 2010 at 1:52
- Changed state: Started
from bugzilla-vcs.
I've uploaded VCI 0.7.0_1, which contains the ability to generate a UUID for
commits for every VCS. Now I have to start using this feature in the VCS
extension.
Original comment by [email protected]
on 16 Oct 2010 at 3:32
from bugzilla-vcs.
Okay, I've fixed this! Now, commits with the same revid across different
branches won't be imported as duplicates by sync.pl. If you currently have
duplicates in your database when you upgrade, you'll get errors and you'll have
to remove them using manual SQL.
With the way this change works, you'll generally want to be sure that you sync
the trunk of each project before you sync the branches, so that the trunk
commits show up on the trunk. I may actually make a change to sync.pl so that
it always sorts branches named "trunk" first when syncing.
In order for the new feature to work, you need both the development version of
bugzilla-vcs and VCI (straight from version control, for both). If you could
grab those and test this out in your environment and let me know how things go,
I would totally appreciate that. :-)
Original comment by [email protected]
on 16 Oct 2010 at 6:36
- Changed state: Fixed
- Added labels: Milestone-Release0.2
from bugzilla-vcs.
[deleted comment]
from bugzilla-vcs.
I am testing VCS-0.2 now and will let you know how it goes.
Original comment by [email protected]
on 3 Nov 2010 at 11:32
from bugzilla-vcs.
Awesome. It appears to be working fine - the "trunk" feature would be cool but
as it is it ends up picking the lowest version as my branches are:
project/2.2b1
project/2.2b4
project/2.3
project/trunk
and that's cool, too, as it lets me see when it was fixed.
Original comment by [email protected]
on 3 Nov 2010 at 11:55
from bugzilla-vcs.
Great! I'm so glad to hear that it worked for you. :-)
Original comment by [email protected]
on 4 Nov 2010 at 12:55
- Changed state: Verified
from bugzilla-vcs.
Related Issues (20)
- hook.pl assumes multiple projects in one svn repository HOT 5
- Can't locate object method "repository" via package "Git" HOT 3
- SVN Commit Message Includes BR Tags HOT 13
- 404 error running hook.pl with mercurial v4.0 with Hg HOT 2
- Could not authenticate to server (svn authentication) HOT 10
- sync.pl (Git) is examining all commits all the time HOT 5
- hook.pl & sync.pl not commiting to oracle db correctly
- Running hook.pl causes xmlrpc.cgi to hang at 100% CPU
- Commit output not formatted correctly. HOT 4
- checksetup.pl tell me that I must install VCI module for perl but it is already installed HOT 2
- Bugzilla does not show any change
- Advance search does not work HOT 2
- The 'nanosecond' parameter ("...") to DateTime::new did not pass the 'a positive integer' callback
- Running hook.pl/sync.pl error
- RPC::XML::Client::send_request: HTTP server error
- VCS Integration with Bugzilla on Windows 32 bit Machine with ActiveState Perl Requires AlienSVN for which There is No Available Working Build
- Can't locate object method "simple_request"
- Syntax error in extension.pm
- 'Svn' is not a valid VCS
- Software fails to install with perl v5.18.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugzilla-vcs.